Use the SORT primary command to sort an IPCS report based on columns
of interest within the report.
Sorting is done as though the report were produced using ISO-8
ASCII characters. This causes columns of equal-length hexadecimal
numbers to sort in numeric sequence since uppercase ISO-8 ASCII letters
collate after decimal digits.
- Syntax
SORT [col1 [col2][A | D][...]]
[X | NX]
- Parameter
- col1
- Specifies the first column of a group of columns to be used
as the sort key. The column number must be entered as a decimal number
between 1 and 250. If col1 is entered alone, 250 is used
as the final column. If no groups of columns are specified, the entire
report line is used as a sort key.
Up to five groups of non-overlapping
columns may be designated. If two or more groups are designated, each
group other than the last must include either a col2 designation,
an indication of sort order, or both.
- col2
- Specifies the final column of a group of columns to be used
as a sort key. The column number must be entered as a decimal number
between col1 and 250.
- A
- D
- Indicates whether the columns are to be sorted in the default,
ascending sequence (A) or in the descending sequence (D). The letters
may be entered in either upper or lower case.
- X
- NX
- Restricts sort activity to excluded (X) or visible (NX) lines
of the report. The default is to sort all lines in the report.
- Example