Previous Topic: Variable Repeating GroupsNext Topic: Demonstration


What You Can Do

You can retrieve occurrences of input fields that repeat a variable number of times.

How to Do It

  1. Define the group by coding one REC parameter with:
    1. An identifying name for the group of fields
    2. The start position
    3. The keyword GROUP
    4. A group identifier
    5. The total length of one occurrence of the group (in bytes), followed by a period (.)
    6. The name of the field in the fixed portion of the record that contains the number of occurrences of 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 identifier of the group
  3. Reference the elements by using explicit subscripts.