Previous Topic: SUBMIT CANCEL CommandNext Topic: Loading and Deleting Output


SORT Command

The SORT command sorts the selection list and displays the sysout/report, identifier, archive date and time, location, lines, pages, job name, job number, generation, exception code, and more. You can sort up to two fields, the syntax of the sort command is as follows.

SORT field1 field2

This table identifies the field name that can be referenced on the SORT command, and the predefined sort sequence used to order the data.

Field Name

Sort sequence

Description

ACCESS|ACCDATE

Descending

Sort by last access date and time

C|CLASS

Ascending

Sort by print class

DATE|ARCDATE

Descending

Sort by archive date and time

DESC

Ascending

Sort by description

DEST

Ascending

Sort by print destination

FORMS

Ascending

Sort by print forms

GEN

Ascending

Sort by generation number

ID|REPORT|SYSOUT

Ascending

Sort by sysout/report identifier

JOB/JOBNAME

Ascending

Sort by job name

JOBID

Ascending

Sort by job number

LINES

Ascending

Sort by number of lines

LOC|LOCATION

Ascending

Sort by report location

ORG|ORIGIN

Ascending

Sort by report origin

PAGES

Ascending

Sort by number of pages

PRINT|PRTDATE

Descending

Sort by print date and time

READER|RDRDATE

Descending

Sort by reader date and time

TAPE|TAPESEQ

Ascending

Sort by tape sequence number

USERFLD

Ascending

Sort by user comments

XCODE

Ascending

Sort by exception code

To sort the selection list by job name, enter:

Command ===> sort job

To sort the selection list by archive date, time and pages, enter:

Command ===> sort date pages

After the list is sorted, use the LOCATE command to review the list based on the first or the sort field. For example, if the list is sorted by jobname, the "LOCATE PROD" command will scroll the list to this entry or to any entry with a jobname of PROD.

If the Sort command is entered without any field, the standard dynamic list which is sequenced by SYSOUT or report identifier will be displayed.