z/OS DFSORT Application Programming Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Example 4

z/OS DFSORT Application Programming Guide
SC23-6878-00

 SORT FIELDS=(20,4,CH,D,10,3,CH,D)
 OUTREC FIELDS=(7:20,4,C' FUTURE ',20,2,10,3,1Z,1,9,13,7,
    24,57,TRAN=LTOU,6X'FF')

This example illustrates how a fixed-length input data set can be sorted and reformatted for output. The SORTIN LRECL is 80 bytes.

The reformatted output records are fixed length with a record size of 103 bytes. SOLRF (the IBM-supplied default) is in effect, so unless the SORTOUT LRECL is specified or available, it will automatically be set to the reformatted record length of 103. The reformatted records look as follows:
Position
Contents
1-6
EBCDIC blanks for column alignment
7-10
Input positions 20 through 23
11-18
Character string: C' FUTURE '
19-20
Input positions 20 through 21
21-23
Input positions 10 through 12
24
Binary zero
25-33
Input positions 1 through 9
34-40
Input positions 13 through 19
41-97
Input positions 24 through 80 with lowercase EBCDIC letters converted to uppercase EBCDIC letters
98-103
Hexadecimal string: X'FFFFFFFFFFFF'

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014