Hi,
You can condition the attributes with indicators, and change the indicators at run-time. Is this what you mean?
Regards,
Martin Gilbert.
Hi,
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:
|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
A R RECORD
A FLD1 5A 2 6DSPATR(&PFLD1)
A FLD2 5A 2 6DSPATR(&PFLD2)
A PFLD1 1A P
A PFLD2 1A P
A
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
Good Luck
Bob McAuliffe
PGMBOB
Last Wiki Answer Submitted: June 20, 2008 3:14 am by Gilly40023,625 pts.
If you live outside the United States, by submitting your email address you consent to having your personal data transferred to and processed in the United States.