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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Copying to z/<strong>OS</strong> UNIX<br />

IEBGENER can be used to copy from a PDS or PDSE member to a UNIX file. You also can<br />

use TSO/E commands and other copying utilities such as ICEGENER or BPXCOPY to copy a<br />

PDS or PDSE member to a UNIX file.<br />

In Figure 4-9, the data set in SYSUT1 is a PDS or PDSE member and the data set in<br />

SYSUT2 is a UNIX file. This job creates a macro library in the UNIX directory.<br />

// JOB ....<br />

// EXEC PGM=IEBGENER<br />

//SYSPRINT DD SYSOUT=*<br />

//SYSUT1 DD DSN=PROJ.BIGPROG.MACLIB(MAC1),DISP=SHR<br />

//SYSUT2 DD PATH='/u/BIGPROG/macros/special/MAC1',PATHOPTS=OCREAT,<br />

// PATHDISP=(KEEP,DELETE),<br />

// PATHMODE=(SIRUSR,SIWUSR,<br />

// SIRGRP,SIROTH),<br />

// FILEDATA=TEXT<br />

//SYSIN DD DUMMY<br />

Figure 4-9 Job to copy a PDS to a z/<strong>OS</strong> UNIX file<br />

Note: If you have the DFSORT product installed, you should be using ICEGENER as an<br />

alternative to IEBGENER when making an unedited copy <strong>of</strong> a data set or member. It may<br />

already be installed in your system under the name IEBGENER. It generally gives better<br />

performance.<br />

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

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

Saved successfully!

Ooh no, something went wrong!