You can condition the attributes with indicators, and change the indicators at run-time. Is this what you mean?
You can also define a "program to system" field for each filed you want to control. Then you can send the code to each field on your display.
The following example shows how to specify the DSPATR keyword with P-field usage:
A R RECORD
A FLD1 5A 2 6DSPATR(&PFLD1)
A FLD2 5A 2 6DSPATR(&PFLD2)
A PFLD1 1A P
A PFLD2 1A P
The field PFLD1 carries the attribute value to control FLD1. The name can be anything as long as the reference is correct. "Link": the FLD1 attribute to the value in PFLD1
You can provide the value in the program to PFLD1. The value will affect the attribute of field1.
Check the DSPATR reference for the values. You control the "program to system" value and that controls the attributes of the field
Last Wiki Answer Submitted: June 20, 2008 3:14 am by Gilly40023,625 pts.