I'm trying to write a program where you have 2 search fields, which is the part number and description. And which ever field I search by should be the first field displayed. How would i fix the display file to display the field i'm searching by
In a subfile, you can't directly condition fields. But you can use DSPATR(ND) to not display them. Use the same indicator with the opposite condition for your two fields.
A FIELD1
A 01 DSPATR(ND)
A FIELD2
A N01 DSPATR(ND)
"When once you have tasted flight, you will forever walk the Earth with your eyes turned skyward, for here you have been, and there you will always long to return."
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.