In this example, an in-stream input, sequential data set is copied
to a tape volume.
//CDTOTAPE JOB ...
//STEP1 EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=A
//SYSIN DD DUMMY
//SYSUT2 DD DSNAME=OUTSET,UNIT=tape,LABEL=(,SL),
// DISP=(,KEEP),VOLUME=SER=001234,
// DCB=(RECFM=FB,LRECL=80,BLKSIZE=2000)
//SYSUT1 DD *
(in-stream data)
/*
The job control statements are as follows:
- SYSIN DD defines a dummy data set. No editing is performed; therefore,
no utility control statements are needed.
- SYSUT2 DD defines the output data set, OUTSET. The data set is
written to a tape volume with IBM standard labels. The data set is
to reside as the first (or only) data set on the volume.
- SYSUT1 DD defines the in-stream data which is actually a JES SYSIN
data set. The data set contains no statements.