SORT primary command

The SORT command changes the order of the data you are viewing. It can be used in Member selection panels.

SORT command in member selection panels

In member selection panels, the SORT primary command sorts the displayed members by any two fields displayed on the member list (apart from the line command field and Prompt field). Valid sort fields are the column headings of the member list statistics fields.
Note: For CARMA directory lists, only name and lib columns are supported.
The following syntax for the SORT command applies to PDSs with formatted records.
Figure 1. Syntax: member selection panels, formatted records

1 SORT
1+ 
1  NAME
2.1! A
1  LIB
2.1! A
1  ALIAS-OF
2.1! A
1  ALIAS
2.1! A
1  SIZE
2.1! D
1  CREATED
2.1! D
1  CRE
2.1! D
1  CHANGED
2.1! D
1  CHA
2.1! D
1  ID
2.1! A
NAME
Sorted by member name.
LIB
Sorted by library directory number.
ALIAS-OF
Sorted by alias name.
ALIAS
Sorted by alias name.
SIZE
Sorted by number of statements in the members for members stored with ISPF statistics.
CREATED
Sorted by creation date.
CRE
Sorted by creation date.
CHANGED
Sorted by dates and times members were last changed.
CHA
Sorted by dates and times members were last changed.
ID
Sorted by user ID.
The following syntax for the SORT command applies to PDSs with unformatted records (RECFM=U) such as load libraries.
Figure 2. Syntax: member selection panels, unformatted records

1 SORT
1+ 
1  NAME
2.1! A
1  LIB
2.1! A
1  ALIAS-OF
2.1! A
1  ALIAS
2.1! A
1  SIZE
2.1! D
1  AC
2.1! A
1  AM
2.1! D
1  RM
2.1! D
1  ATTRIBUTES
2.1! D
1  ATTR
2.1! D
NAME
Sorted by member name.
LIB
Sorted by library directory number.
ALIAS-OF
Sorted by alias name.
ALIAS
Sorted by alias name.
SIZE
Sorted by the hexadecimal value for the load module size.
AC
Sorted by authorization code.
AM
Sorted by AMODE binder value.
RM
Sorted by RMODE binder value.
ATTRIBUTES
Sorted by attribute values determined by binder.
ATTR
Sorted by attribute values determined by binder.

The following syntax for the SORT command applies to PANVALET members.

Figure 3. Syntax: member selection panels, PANVALET members

1 SORT
1+ 
1  LVL
2.1! A
1  STAT
2.1! A
1  USER
2.1! A
1  ACCESSED
2.1! D
1  CHANGED
2.1! D
1  SIZE
2.1! D
1  BLKS
2.1! D
LVL
Sorted by member level.
STAT
Sorted by member status.
USER
Sorted by user code.
ACCESSED
Sorted by last access date.
CHANGED
Sorted by last changed date.
SIZE
Sorted by number of statements.
BLKS
Sorted by number of blocks.

Related tasks and examples

Availability