

Using Subscripts › Fixed Repeating Fields › What You Can Do
What You Can Do
You can retrieve input data items that occur a fixed number of times.
How to Do It
Define the related items as a group of similar elements before processing takes place.
- Define the group of repeating fields by coding one REC parameter with:
- A group name for the repeating fields
- The start position of the group
- The keyword GROUP
- A 2-character group identifier
- The total length (in bytes) of the group, followed by a period (.)
- The number of occurrences in the group
- Define the elements of the group by coding a REC parameter for each element of the group with:
- The name of the element
- The start position within the group
- The length of the element
- The keyword ELMNT
- The same 2-character identifier as the group to which the element belongs
- Reference the elements by using explicit subscripts.
Copyright © 2014 CA.
All rights reserved.
 
|
|