In this example, a sequential data set is printed according to
the default format. The printed output is converted to hexadecimal.
//PRINT JOB ...
//STEP1 EXEC PGM=IEBPTPCH
//SYSPRINT DD SYSOUT=A
//SYSUT1 DD DSNAME=INSET,UNIT=tape,
// LABEL=(,NL),VOLUME=SER=001234,
// DISP=(OLD,KEEP),DCB=(RECFM=U,BLKSIZE=2000)
//SYSUT2 DD SYSOUT=A
//SYSIN DD *
PRINT TOTCONV=XE
TITLE ITEM=('PRINT SEQ DATA SET WITH CONV TO HEX',10)
/*
The control statements are as follows:
- SYSUT1 DD defines the input data set on a tape volume. The data
set contains undefined records; no record is larger than 2,000 bytes.
- SYSUT2 DD defines the output data set. The data set is written
to the system output device (printer assumed).
- SYSIN DD defines the control data set, which follows in the input
stream.
- PRINT begins the print operation and specifies conversion from
alphanumeric to hexadecimal representation.
- TITLE specifies a title to be placed beginning in column 10 of
the printed output. The title is not converted to hexadecimal.