From: Doug Close To: Sharon Cannon
I want my program to check a display file for changes to any fields. I don't want to compare the new field values to the old. Can I can do this by checking a flag for the entire record?
From: Sharon Cannon To: Doug Close
Use the CHANGE keyword at the record level, as shown in 5. In this example, indicator 88 will be set on if any of the fields change.
Use the CHANGE keyword at the record level, as shown in Figure 5. In this example, indicator 88 will be set on if any of the fields change.
Editor's note: The response indicator is set on even if the workstation user keys the same data in the field as was initially displayed. For example, typing into a blank field and then blanking the field will cause the response indicator to turn on.
Display File Field Changed?
Figure 5 Detecting a Display File Field Change
A R ADRREC A CHANGE(80 'A field was changed') A NAME 25A B 3 2 A ADDR1 35A B 5 2 A ADDR2 35A B 7 2 A STATE 2A I 9 2DFT('CA')
LATEST COMMENTS
MC Press Online