VSAM Batch and all other batch environments
Numerically suffixed data items
item-#num[/limit[/increment]]
1-dimensional array
arrayitem (#num[/limit1[/increment1]]) One subscript range
2-dimensional array
arrayitem (#num[/limit1[/increment1]], First subscript range #num2[/limit2[/increment2]]) Second subscript range
3-dimensional array
arrayitem (#num[/limit1[/increment1]], First subscript range #num2[/limit2[/increment2]], Second subscript range #num3[/limit3[/increment3]]) Third subscript range
number | Starting number |
limit | Top limit of the increment range, or bottom limit if the increment is negative |
increment | Integer increment value for intermediate data items |
The following iterative expression:
SOURCE ARRAY-ITEM (#3, #2)
Replaces the following code:
SOURCE ARRAY-ITEM (1, 1) SOURCE ARRAY-ITEM (1, 2) SOURCE ARRAY-ITEM (2, 1) SOURCE ARRAY-ITEM (2, 2) SOURCE ARRAY-ITEM (3, 1) SOURCE ARRAY-ITEM (3, 2)