09.07.2015 Views

z/OS V1R6.0 DFSMS Access Method Services for Catalogs

z/OS V1R6.0 DFSMS Access Method Services for Catalogs

z/OS V1R6.0 DFSMS Access Method Services for Catalogs

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.

LISTCAT//LISTCAT1 JOB ...//STEP1 EXEC PGM=IDCAMS//SYSPRINT DD SYSOUT=A//SYSIN DD *LISTCAT -ENTRIES(LCT.EXAMPLE.KSDS1) -CLUSTER -ALL/*The LISTCAT command lists the cluster’s catalog entry. It is assumed that the highlevel of the qualified cluster name is the same as the alias of the catalogSTCUCAT1; this naming convention directs the catalog search to the appropriatecatalog. The parameters are:vvvENTRIES identifies the entry to be listed.CLUSTER specifies that only the cluster entry is to be listed. If CLUSTER hadnot been specified, the cluster’s data and index entries would also be listed.ALL specifies that all fields of the cluster entry are to be listed.Alter a Catalog Entry, Then List the Modified Entry: Example 3In this example, the free space attributes <strong>for</strong> the data component (LCT.KSDATA) ofcluster LCT.MYDATA are modified. Next, the cluster entry, data entry, and indexentry of LCT.MYDATA are listed to determine the effect, if any, the modificationhas on the cluster’s other attributes and specifications.//LISTCAT2 JOB ...//STEP1 EXEC PGM=IDCAMS//SYSPRINT DD SYSOUT=A//SYSIN DD *ALTER -LCT.KSDATA -FREESPACE(10 10)IF LASTCC = 0 -THEN -LISTCAT -ENTRIES(LCT.MYDATA) -ALL/*The ALTER command modifies the free space specifications of the data componentof the key-sequenced VSAM cluster LCT.MYDATA. Its parameters are:vvLCT.KSDATA is the entryname of the data component being altered.LCT.KSDATA identifies the data component of a key-sequenced VSAM cluster,LCT.MYDATA. To alter a value that applies only to the cluster’s datacomponent, such as FREESPACE does, you must specify the data component’sentryname.FREESPACE specifies the new free space percentages <strong>for</strong> the data component’scontrol intervals and control areas.The IF ... THEN command sequence verifies that the ALTER command completedsuccessfully be<strong>for</strong>e the LISTCAT command runs. The LISTCAT command lists thecluster’s entry and its data and index entries. The parameters are:vvENTRIES specifies the entryname of the object being listed. BecauseLCT.MYDATA is a key-sequenced cluster, the cluster entry, its data entry, and itsindex entry are listed.ALL specifies that all fields of each entry are to be listed.284 z/<strong>OS</strong> <strong>V1R6.0</strong> <strong>DFSMS</strong> <strong>Access</strong> <strong>Method</strong> <strong>Services</strong> <strong>for</strong> <strong>Catalogs</strong>

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

Saved successfully!

Ooh no, something went wrong!