Previous Topic: Obtaining Sort-key ValuesNext Topic: Demonstration


What You Can Do

You can use one element of a subscripted field as a sort key. The value of the sort key associated with the last detail line processed before the control break is returned when type 6 or type 8 parameters reference the field.

How to Do It

Code:

  1. The subscripted field on a SORT parameter
  2. The subscripted field on a type 6 or type 8 parameter

The following example uses a subscripted work field, AMT.5, on the SORT parameter. The type 6 reference to the field returns the current value of AMT.5:

010 AMT.5
01SORT AMT.5
0151*010 ' '
0161*010 AMT.5