Figure 227 shows how to specify the PROTECT keyword.
Figure 227. Specifying the PROTECT Keyword
|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8 00010A R RECORD1 00020A FLD1 5 I 5 3 00030A 00040A R RECORD2 OVERLAY 00050A 32 PROTECT 00060A FLDA 10 I 6 3 A
In Figure 227, RECORD1 has an input-capable field that has been displayed and read and that should be left on the display while RECORD2 is displayed and read. To prevent further entries in FLD1 in RECORD1, send an output operation to RECORD2 with PROTECT in effect. When this is done, FLDA is not protected, but FLD1 is protected.
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.