Columns 9-16 Factor 1 Field [ HP RPG/XL Utilities-Part 1 XSORT ] MPE/iX 5.0 Documentation
HP RPG/XL Utilities-Part 1 XSORT
Columns 9-16
Factor 1 Field
Factor 1 field identifies your record. For example, all your inventory
records may contain a 2 in column 2. That would make column 2 a factor 1
field. By comparing factor 1 fields against constants or other fields in
the same record, XSORT identifies records you want sorted. Columns 9-16
identify the locations of factor 1 fields in the records. You may at
times have more than one factor 1 field. When there is more than one,
you must do the following:
* Describe each field in a separate Record Type line.
* Put an A (for AND) in column 7 for all but the first field. This
will identify those following as applying to the same Record Type.
Length of the Factor 1 Field
Each factor 1 field can contain from 1 to 256 characters. A factor 1
field cannot be longer than the records you are working with, however.
The length of your input records determines how long your factor 1 field
can be. Your column 8 entry also controls the maximum length of the
factor 1 field.
---------------------------------------------------------------------------------------------
| | |
| Column 8 Entry | Maximum Factor 1 Field Length |
| | |
---------------------------------------------------------------------------------------------
| | |
| C | 256 characters * |
| | |
---------------------------------------------------------------------------------------------
| | |
| P | 14 characters ** |
| | |
---------------------------------------------------------------------------------------------
| | |
| U | 28 characters |
| | |
---------------------------------------------------------------------------------------------
* If factor 2 is a constant, the length of the factor 1 field must not
exceed 61 characters (see columns 20-80 for additional information).
** When factor 1 is packed, the field may actually represent 27 decimal
digits and a sign.
Coding Rules
For readability these specifications should be right-justified. The
entry which tells where the factor 1 field begins--where to read
from--should end in column 12. The entry which tells where factor 1
ends--where to read through--should end in column 16.
If you have factor 1 fields that are only one character long, you can
leave columns 9-12 (from) blank and enter the single number of columns
13-16 (to). The example below describes the position of a factor 1 field
which has a 2 entered in column 4.
MPE/iX 5.0 Documentation