- INPUT
- Blocked fixed-length records on disk
- OUTPUT
- Blocked fixed-length records on disk
- WORK DATA SETS
- Dynamically allocated
- USER EXITS
- None
- FUNCTIONS/OPTIONS
- CHALT, DYNALLOC, FILSZ
//EXAMP JOB A400,PROGRAMMER 01
//RUNSORT EXEC PGM=MYPGM 02
//STEPLIB DD DSN=M999999.LOAD,DISP=SHR 03
//SYSOUT DD SYSOUT=A 04
//SYSPRINT DD SYSOUT=A 05
//SORTIN DD DSN=M999999.INPUT(MASTER),DISP=OLD 06
//SORTOUT DD DSN=M999999.OUTPUT.FILE,DISP=OLD 07
//SORTCNTL DD * 08
OPTION CHALT,DYNALLOC=(,3),FILSZ=U25000 09
- Line
- Explanation
- 01
- JOB statement. Introduces this job to the operating system.
- 02
- EXEC statement. Calls a program named MYPGM that in turn calls
DFSORT.
- 03
- STEPLIB DD statement. Specifies the load library that contains
MYPGM.
- 04
- SYSOUT DD statement. Directs DFSORT messages and control statements
to system output class A.
- 05
- SYSPRINT DD statement. Directs MYPGM output to system output
class A.
- 06
- SORTIN DD statement. The input data set is member MASTER in
the cataloged partitioned data set M999999.INPUT. DFSORT determines
the RECFM, LRECL and BLKSIZE from the data set label.
- 07
- SORTOUT DD statement. The output data set is named M999999.OUTPUT.FILE
and is cataloged. DFSORT determines the RECFM, LRECL and BLKSIZE
from the data set label.
- 08
- SORTCNTL DD statement. DFSORT control statements follow. Statements
in SORTCNTL override or supplement statements passed by MYPGM in the
DFSORT parameter list it uses.
- 09
- OPTION statement. CHALT specifies that character format control
fields (specified in the SORT statement passed by MYPGM) are to be
sorted using the ALTSEQ installation option.
DYNALLOC=(,3) specifies that three work data sets are to be dynamically
allocated using the installation default for the type of device. FILSZ=U25000
specifies a file size of 25000 records is to be used by DFSORT to
determine the amount of work space needed. Because the input data
set is a member of a PDS, specifying FILSZ helps DFSORT optimize work
data set space.