For programs that do not close down, arrays are initialized on the first call to the program. Subsequent calls do not clear the array. The first call loads the array and subsequent calls retrieve that data. In addition, you can define an array to store and restore any fields in the program between calls. The PGM context variable Initial Call can be used to distinguish between first and subsequent calls. This variable is always set to *YES if the program closes down.
For more information on defining arrays, see Building Applications.
Copyright © 2014 CA.
All rights reserved.
|
|