Sorts a list previously saved in POINTER-FILE.
SORT-LIST {list-name {account-name}} {(options}
list-name is the name of the saved list.
account-name is the name of the account from which the list was saved.
If you do not specify account-name, the processor assumes the current account.
n See option M.
C Counts number of identical attribute values, appending to the value the count, if greater than one, preceded by a subvalue mark. Only active with option U.
M Discards unique entries in list. If n not specified, keeps one copy of entries contained more than once. If n specified, keeps one copy of entries contained n or more times. Gives the intersection of merged lists.
N Inverts the M option so as to keep values that occur only once in a list. Relevant only with the M option. If the list was created by merging two or more lists, this option gives the symmetric difference.
R Sorts the list in a right-aligned ascending order.
U Removes multiple cases of a value. If the list was created by merging two or more lists, this option gives the union of lists.
Used to sort a list modified by EDIT-LIST, or to avoid doing an SSELECT on a large file.
:SELECT MD
429 ITEMS SELECTED.
>SAVE-LIST ALLMD
[241] 'ALLMD' Cataloged.
:SORT-LIST ALLMD
The list in ALLMD is now in ascending sequence.