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.

6.7 Defining a catalog and its aliases<br />

Master catalog MCAT<br />

Self-describing record<br />

User catalog connector for UCAT1<br />

Alias TEST1 for UCAT1<br />

Alias TEST2 for UCAT1<br />

data set entry for SYS1.PARMLIB<br />

data set entry for SYS1.LINKLIB<br />

Figure 6-8 JCL to create a basic catalog structure<br />

Defining a catalog<br />

You can use the IDCAMS to define and maintain catalogs. See also 4.14, “Access method<br />

services (IDCAMS)” on page 129. Defining a master catalog or user catalog is basically the<br />

same.<br />

//DEFCAT JOB ...<br />

//DEFCAT EXEC PGM=IDCAMS<br />

//SYSPRINT DD SYSOUT=A<br />

//SYSIN DD *<br />

DEFINE USERCATALOG -<br />

( NAME(OTTO.CATALOG.TEST) -<br />

MEGABYTES(15 15) -<br />

VOLUME(VSF6S4) -<br />

ICFCATALOG -<br />

FREESPACE(10 10) -<br />

STRNO(3) ) -<br />

DATA( CONTROLINTERVALSIZE(4096) -<br />

BUFND(4) ) -<br />

INDEX( BUFNI(4) )<br />

/*<br />

Figure 6-9 Sample JCL to define a BCS<br />

User catalog UCAT1<br />

Self-describing record<br />

entry for TEST1.A<br />

entry for TEST1.B<br />

entry for TEST2.A<br />

1. DEFINE USERCATALOG ICFCAT - UCAT1<br />

2. DEFINE ALIAS - TEST1 and TEST2<br />

3. Create data sets with HLQ <strong>of</strong> - TEST1 and TEST2<br />

TEST1.A<br />

TEST2.A<br />

TEST1.B<br />

SYS1.PARMLIB<br />

SYS1.LINKLIB<br />

Chapter 6. Catalogs 339

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

Saved successfully!

Ooh no, something went wrong!