The CHGDTAARA command uses a *SHRUPD (shared for update) lock on the data area during command processing. The RTVDTAARA and DSPDTAARA commands use a *SHRRD (shared for read) lock on the data area during command processing. If you are performing more than one operation on a data area, you may want to use the Allocate Object (ALCOBJ) command to prevent other users from accessing the data area until your operations are completed. For example, if the data area contains a value that is read and incremented by jobs running at the same time, the ALCOBJ command can be used to protect the value in both the read and update operations. See "Objects and Libraries" for how to allocate objects.
For information on handling data areas in other (non-CL) languages, refer to the appropriate HLL reference manual.
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.