Previous Topic: Fixed Repeating FieldsNext Topic: Demonstration


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.

  1. Define the group of repeating fields by coding one REC parameter with:
    1. A group name for the repeating fields
    2. The start position of the group
    3. The keyword GROUP
    4. A 2-character group identifier
    5. The total length (in bytes) of the group, followed by a period (.)
    6. The number of occurrences in the group
  2. Define the elements of the group by coding a REC parameter for each element of the group with:
    1. The name of the element
    2. The start position within the group
    3. The length of the element
    4. The keyword ELMNT
    5. The same 2-character identifier as the group to which the element belongs
  3. Reference the elements by using explicit subscripts.