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


Example 17

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

 OPTION COPY
 OUTFIL FNAMES=VUPPER,OUTREC=(1,4,5,TRAN=UTOL)
 OUTFIL FNAMES=VHEX,OUTREC=(1,4,5,HEX)

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

The input data set has RECFM = VB and LRECL = 5000.

The first OUTFIL statement creates the data set associated with ddname VUPPER. This data set will have RECFM = VB and LRECL = 5000. All of the uppercase EBCDIC characters (A-Z) from bytes 5 (after the RDW) to the end of each record will be converted to lowercase 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 VHEX. This data set will have RECFM = VB and LRECL = 9996 (4 for RDW plus 2 * 4996 data bytes). Each byte from 5 (after the RDW) to the end of each record 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