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.

6.6 Catalog search order<br />

IDCAMS<br />

'CATALOG'<br />

KEYWORD<br />

?<br />

N<br />

Start<br />

STEPCAT<br />

?<br />

N<br />

JOBCAT<br />

?<br />

N<br />

Valid<br />

ALIAS?<br />

N<br />

Y<br />

Y<br />

Y<br />

Y<br />

Search in specified<br />

catalog<br />

Search data set in STEPCAT<br />

Search the data set in the<br />

related USER catalog<br />

Search the data set in<br />

the MASTER catalog<br />

Figure 6-7 Catalog search order for a LOCATE request<br />

Standard search order for a LOCATE request<br />

Continue if not found<br />

Continue if not found<br />

Search/define data set in<br />

JOBCAT<br />

Fail if not found<br />

Fail if not found<br />

Fail if not found<br />

Catalog search order<br />

LOCATE is an SVC that calls catalog management asking for a data set name search. Most<br />

catalog searches are based on catalog aliases. Alternatives to catalog aliases are available<br />

for directing a catalog request, specifically the JOBCAT and STEPCAT DD statements; the<br />

CATALOG parameter <strong>of</strong> access method services; and the name <strong>of</strong> the catalog. JOBCAT and<br />

STEPCAT are no longer allowed beginning with z/<strong>OS</strong> V1R7.<br />

Search order for catalogs for a data set define request<br />

For the system to determine where a data set is to be cataloged, the following search order is<br />

used to find the catalog:<br />

1. Use the catalog named in the IDCAMS CATALOG parameter, if coded.<br />

2. If the data set is a generation data set, the catalog containing the GDG base definition is<br />

used for the new GDS entry.<br />

3. If the high-level qualifier is a catalog alias, use the catalog identified by the alias or the<br />

catalog whose name is the same as the high-level qualifier <strong>of</strong> the data set.<br />

4. If no catalog has been identified yet, use the master catalog.<br />

Chapter 6. Catalogs 337

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

Saved successfully!

Ooh no, something went wrong!