IBM OS/390 User Manual

Page of 673
15.5.2.1 SORT FIELDS
SORT data: a character string containing an image of the SORT statement. This
card image must begin and end with a blank. It will contain the sort criteria and
the description of these criteria.
15.5.2.2 RECORD
RECORD information: A character string containing a card image of the RECORD
control statement. It too must begin and end with a blank. It describes the length
and format of the records.
15.5.2.3 STORAGE
STORAGE information: This will be a FIXED DECIMAL expression indicating the
amount of storage available to the sort.
15.5.2.4 RETURN CODE
This will be a FIXED BINARY variable where the sort will place a return code
equal to 0 or 16 according to the correct or incorrect result of its execution.
15.5.2.5 E15 EXIT PROCEDURE
The name of the PL/I function procedure to be executed at the sort input exit
point is E15. It will pass to the sort one-by-one the records to be sorted. Note
that when the sort is called from PL/I, it does not allow merging of records read
from SYSIN with records passed from the E15 exit procedure.
15.5.2.6 EXIT E35
Name of the entry point is F35, and name of the PL/I procedure (internal or
external) which will receive control after the sort phase.
15.5.2.7 DDNAME PREFIXES
The names of the sort files are defined by default by the sort. The first four
characters can be defined by the user:
SORTIN XXXXIN
SORTOUT XXXXOUT
SORTWK01 XXXXWK0I
SORTWK0n XXXXWK0n
SORTCKPT XXXXCKPT
The other files must remain as SYSLIB and SYSOUT. This parameter therefore
allows the user to define DDnames convenient to him.
15.5.2.8 SORT MESSAGES
The user can ask for sort messages to be directed to the console operator or to
the SYSOUT file, and to specify the severity of the messages:
NO
No messages on SYSOUT
AP
All messages on SYSOUT
AC
All messages to the console
CP
Critical messages on SYSOUT
CC
Critical messages on the console
Chapter 15. PL/I
341