The SORT primary command sorts the data set list by the specified field. Use this format:
- The major sort field. If only one operand is used, ISPF treats it as field1. If both operands are used, ISPF sorts the list by field1 first, then by field2 within field1.
- The minor sort field.
- The direction in which values are sorted for this field (A=ascending, D=descending).
SORT VOLUME BLKSZ
|NAME||Ascending||Data set name|
|MESSAGE||Ascending||Command completion message|
|DSORG||Ascending||Data set organization|
|LRECL||Descending||Logical record length|
|TRACKS||Descending||Data set size|
|REFERRED||Descending||Last accessed data|
|MVOL||Ascending||Multivolume or migration level|
|PROMPT||Descending||Data displayed in PROMPT field|
Automatic scrolling is performed, if necessary, to bring the major sort field into view. ISPF displays a progress status pop-up panel when the necessary information to perform a SAVE or SORT primary command has to be retrieved and the data set list comprises 50 or more data sets. The keyboard locks when this pop-up panel appears and stays locked until the SAVE or SORT command is completed. This happens regardless of the setting of Display Total Tracks option and the value entered in the Initial View field.