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

Create successful ePaper yourself

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

LISTCATLISTCAT ExamplesAbbreviation: VOLALLOCATIONspecifies that the in<strong>for</strong>mation provided by specifying VOLUME plusdetailed in<strong>for</strong>mation about the allocation are to be listed. The in<strong>for</strong>mationabout allocation is listed only <strong>for</strong> data and index component entries.Abbreviation: ALLOCALLspecifies that all fields are to be listed.OUTFILE(ddname)specifies a data set, other than the SYSPRINT data set, to receive the outputproduced by LISTCAT (that is, the listed catalog entries). Completion messagesproduced by access method services are sent to the SYSPRINT data set, alongwith your job’s JCL and input statements.ddname identifies a DD statement that describes the alternate target data set. IfOUTFILE is not specified, the entries are listed in the SYSPRINT data set. If analternate data set is specified, it must meet the requirements in “JCL DDStatement <strong>for</strong> an Alternate Target Data Set” on page 4.Abbreviation: OFILEThe LISTCAT command can per<strong>for</strong>m the functions shown in the followingexamples.List an SMS-Managed Data Set: Example 1In this example, the HISTORY parameter is used to list an SMS-managed data set.//LISTCAT1 JOB ...//STEP1 EXEC PGM=IDCAMS//SYSPRINT DD SYSOUT=A//SYSIN DD *LISTCAT -ENTRIES(USER01.DATA1.EXAMPL) -CLUSTER -HISTORY/*The CLUSTER parameter specifies that only the cluster component of the entryidentified in the ENTRIES parameter are listed. The HISTORY parameter causesthe display of the HISTORY in<strong>for</strong>mation along with the SMS classes and lastbackup date. The SMS in<strong>for</strong>mation appears in the following <strong>for</strong>mat:SMSDATASTORAGECLASS-----------SC4DATACLASS-----------DCL021MANAGEMENTCLASS-MGTCL004LBACKUP----2003.221.0255If the last backup date had been unavailable, LISTCAT would have displayed:LBACKUP------XXXX.XXX.XXXXAn example of the complete output resulting from this LISTCAT command isshown in Figure 16 on page 403.List a Key-Sequenced Cluster’s Entry in a Catalog: Example 2In this example, a key-sequenced cluster entry is listed.Chapter 27. LISTCAT 283

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

Saved successfully!

Ooh no, something went wrong!