PSORT= column within person label for alphabetical sort in Table 19 = 1 |
Top Up Down
A A |
Table 19 lists persons alphabetically. Table 1 and Table 16 list them alphabetically within lines. Ordinarily, the whole person name is used. Select the sorting columns in the person labels using the column selection rules, e.g., starting in column Snn and ending in column Enn or of width Wnn.
Example 1: The person name is entered in the data file starting in column 20. It is a 6-digit student number followed by a blank and then gender identification in column 8 of the person name. Sort by gender identification for Table 19, then by student number.
NAME1=20
NAMLEN=8 ; student number + gender
PSORT=$S8W1+$S8W6 alphabetical sort on gender
TABLES=1111111111111111111111111
&END
|
END NAMES
xxxxxxxxxxxxxxxxxxx123456 M 0010101101001002010102110011
xxxxxxxxxxxxxxxxxxx229591 F 1102010020100100201002010021
sort columns ^ ^
Example 2: The person name contains several important classifiers. Table 19 is needed for each one:
NAME1=14 Person name starts in column 14
ITEM1=24 Response start in column 24
TFILE=*
19 - - - 1 sort starts with column 1 of person name
19 - - - 8 sort starts with column 8 of person name
19 - - - 6 sort starts with column 6 of person name up to the end of the person name
- entered as place-holders, see TFILE=
*
&END
|
END NAMES
xxxxxxxxxxxxx1234 M 12 0010101101001002010102110011
xxxxxxxxxxxxx2295 F 09 1102010020100100201002010021
Example 3: A version of Table 19, sorted on person name column 6, is to be specified on the DOS command line or on the Extra Specifications line. Commas are used as separators, and "-" as place-holders:
TFILE=* 19,-,-,-,6 *