The value of fields referenced during output phase processing on type 6 edit and type 8 process parameters depends on the following conditions:
The value of a field referenced during the output phase under the above conditions will be one of the following types of values:
The following table summarizes values assigned to input and work fields during the output phase.
|
Filed Type |
Parameter Type |
||||
|---|---|---|---|---|---|
|
|
|
SORT |
SORT and Type 5 |
Type 5 |
Other |
|
REC |
A |
Sort-key value |
Sort-key value |
Error |
Error |
|
REC |
N |
Sort-key value |
Column total |
Column total |
Error |
|
Work |
A |
Sort-key value |
Sort-key value |
Current value |
Current value |
|
Work |
N |
Sort-key value |
Column total |
Column total |
Current value |
Notes:
N = Numeric field A = Alphanumeric field Sort-key value = Value of sort key at the control break Column total = Total of items extracted on a type 5 edit parameter Current value = Value of the named work field
Each type of output phase field value is described as follows:
Column Total
A field is assigned a column total if the field is a numeric input or work field that is specified on a type 5 edit parameter. A reference to the field on a type 6 edit parameter or type 8 process parameter obtains the sum of all detail occurrences of the field for the current control break. This is true even for numeric fields that specify format codes FD (date), FS (social security number), and FM (edit mask).
Fields in this category cannot be specified as result fields on a type 8 process parameter. Fields in this category that appear on a SORT parameter are sorted by the extracted value of the field. The value of the field as a sort key, however, cannot be obtained by a reference on a type 6 edit parameter or type 8 process parameter.
Sort-key Value
A field is assigned a sort-key value if it is one of the following:
A field in this category that is referenced on a type 6 edit parameter or type 8 process parameter is assigned the value of the sort key associated with the last detail line processed before the current control break. Fields in this category cannot be result fields on a type 8 process parameter.
Work Field
A field is assigned the current value of a type 0 or type 1 work field if it is one of the following:
A field in this category that is referenced on a type 6 edit parameter or type 8 process parameter is assigned the current value of the work field. The current value depends on the type of work field, as follows:
The subscript of a subscripted work field is interpreted as a pointer to an occurrence in an array that holds the current values of the work field. The subscript must be a numeric literal or a numeric work field that does not appear on a type 5 edit parameter or on a SORT parameter and that does not specify a decimal point.
A reference to a field is invalid on a type 6 or type 8 parameter if the field is one of the following:
|
Copyright © 2014 CA.
All rights reserved.
|
|