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


Example 16

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

 SORT FIELDS=(1,20,BI,A)
 OUTFIL FNAMES=FUPPER,OUTREC=(1,80,TRAN=LTOU)
 OUTFIL FNAMES=FHEX,OUTREC=(1,80,HEX)

This example illustrates two types of conversion for fixed length records: lowercase to uppercase conversion and hex conversion.

The input data set has RECFM = FB and LRECL = 80.

The first OUTFIL statement creates the data set associated with ddname FUPPER. This data set will have RECFM = FB and LRECL = 80. All of the lowercase EBCDIC characters (a-z) from byte 1 to byte 80 will be converted to uppercase EBCDIC characters (A-Z). Other characters will remain unchanged. For example, the characters 'san jose, ca 95193' will be converted to 'SAN JOSE, CA 95193'.

The second OUTFIL statement creates the data set associated with ddname FHEX. This data set will have RECFM = FB and LRECL = 160 (2 * 80 data bytes). Each byte from 1 to 80 will be converted to the two bytes representing its hex value. For example, the three characters 'A12' will be converted to the six characters 'C1F1F2'.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014