Previous Topic: Batch Automatic Editing and Error HandlingNext Topic: Online Mapping Facility


Variable Array Processing

Variable array records are records that contain a field that occurs a certain number of times depending on the value of another field in the record. An example is shown below:

SAMPLE-RECORD
03 FIELDA PIC S9(4) USAGE IS COMPUTATIONAL.
03 FIELDB PIC X(20) OCCURS 3 TO 10 TIMES
                    DEPENDING ON FIELDA.

Processing

When the external record of a file map includes a variable array, CA ADS Batch performs the following processing: