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.

2.15 Uncataloged and cataloged data sets<br />

Uncataloged reference<br />

// DD DSN=PAY.D1,DISP=OLD,UNIT=3390,VOL=SER=MYVOL1<br />

Cataloged reference<br />

// DD DSN=PAY.D2,DISP=OLD<br />

Figure 2-15 Cataloged and uncataloged data sets<br />

Cataloged data sets<br />

When an existing data set is cataloged, z/<strong>OS</strong> obtains unit and volume information from the<br />

catalog using the LOCATE macro service. However, if the DD statement for a catalog data set<br />

contains VOLUME=SER=serial-number, the system does not look in the catalog; in this case,<br />

you must code the UNIT parameter and volume information.<br />

Uncataloged data sets<br />

When your existing data set is not cataloged, you must know in advance its volume location<br />

and specify it in your JCL. This can be done through the UNIT and VOL=SER, as shown in<br />

Figure 2-15.<br />

See z/<strong>OS</strong> MVS JCL Reference, SA22-7597 for information about UNIT and VOL parameters.<br />

Note: We strongly recommend that you do not have uncataloged data sets in your<br />

installation because uncataloged data sets can cause problems with duplicate data and<br />

possible incorrect data set processing.<br />

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

JCL references to data sets in JCL<br />

CATALOG<br />

PAY.D2<br />

MYVOL1<br />

PAY.D1

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

Saved successfully!

Ooh no, something went wrong!