11.01.2013 Views

ABCs of z/OS System Programming Volume 3 - IBM Redbooks

ABCs of z/OS System Programming Volume 3 - IBM Redbooks

ABCs of z/OS System Programming Volume 3 - IBM Redbooks

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

4.8 IEBGENER: Copying data to tape<br />

MY.DATA IEBGENER<br />

Figure 4-11 Copying data to tape<br />

Copying data to tape example<br />

You can use IEBGENER to copy data to tape. The example in Figure 4-11 copies the data set<br />

MY.DATA to an SL cartridge. The data set name on tape is MY.DATA.OUTPUT.<br />

//DISKTOTP JOB ...<br />

//STEP1 EXEC PGM=IEBGENER<br />

//SYSPRINT DD SYSOUT=A<br />

//SYSUT1 DD DSNAME=MY.DATA,DISP=SHR<br />

//SYSUT2 DD DSNAME=MY.DATA.OUTPUT,UNIT=3490,DISP=(,KEEP),<br />

// VOLUME=SER=<strong>IBM</strong>001,LABEL=(1,SL)<br />

//SYSIN DD DUMMY<br />

Figure 4-12 Copying data to tape with IEBGENER<br />

For further information about IEBGENER, refer to z/<strong>OS</strong> DFSMSdfp Utilities, SC26-7414.<br />

120 <strong>ABCs</strong> <strong>of</strong> z/<strong>OS</strong> <strong>System</strong> <strong>Programming</strong> <strong>Volume</strong> 3<br />

MY.DATA.OUTPUT

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!