- INPUT
- Concatenated z/OS UNIX Files
- OUTPUT
- z/OS UNIX File
- WORK DATA SETS
- Dynamically allocated (by default)
- USER EXITS
- None
- FUNCTIONS/OPTIONS
- None
//EXAMP JOB A400,PROGRAMMER 01
//S1 EXEC PGM=SORT 02
//SYSOUT DD SYSOUT=A 03
//SORTIN DD PATH='/user/hfs.inp1.txt',PATHOPTS=ORDONLY, 04
// LRECL=80,BLKSIZE=240,RECFM=FB,FILEDATA=TEXT 05
// DD PATH='/user/hfs.inp2.txt',PATHOPTS=ORDONLY, 06
// LRECL=80,BLKSIZE=80,RECFM=F,FILEDATA=TEXT 07
//SORTOUT DD PATH='/user/hfs.ut.txt',PATHOPTS=OWRONLY, 08
// LRECL=80,BLKSIZE=80,RECFM=F,FILEDATA=TEXT 09
//SYSIN DD * 10
SORT FIELDS=(10,8,CH,A) 11
- Line
- Explanation
- 01
- JOB statement. Introduces this job to the operating system.
- 02
- EXEC statement. Calls DFSORT directly by its alias name SORT.
- 03
- SYSOUT DD statement. Directs DFSORT messages and control statements
to system output class A.
- 04-05
- SORTIN DD statement. The first input file is a z/OS
UNIX file named /user/hfs.inp1.txt. Only read access is allowed.
The file is defined as a text file. It has fixed-length records
with a record size of 80 and a block size of 240.
- 06-07
- The second input file is a z/OS UNIX file
named /user/hfs.inp2.txt. Only read access is allowed. The file is
defined as a text file. It has fixed-length records with a record
size of 80 and a block size of 80.
- 08-09
- SORTOUT DD statement. The output file is a z/OS
UNIX file named /user/hfs.ut.txt. Only write access is allowed.
The file is defined as a text file. It has fixed-length records
with a record size of 80 and a block size of 80.
- 10
- SYSIN DD statement. DFSORT control statements follow.
- 11
- SORT statement. FIELDS specifies an ascending 8-byte character
control field starting at position 10.