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.
Code:
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
|
Copyright © 2014 CA.
All rights reserved.
|
|