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.

JCL DD StatementsWhen you use a JCL DD statement to identify a data set, include this on the DDstatement:v User data set namev Catalog name of the BCSv VVDS namev Unit and volume serial numbers, if the data set is not catalogedv Dispositionv AMP='AMORG' is required <strong>for</strong> VVDSsJCL DD Statement <strong>for</strong> a VSAM Data SetYou can allocate VSAM data sets directly with the access method servicesALLOCATE command. The following DD statements demonstrate two additionalmethods of describing and allocating a VSAM data set:vvFor allocating and creating a new data set://ddname DD DSNAME=dsname,DISP=(NEW,CATLG),RECORG=KS,// SPACE=(TRK,10,10),STORCLAS=xxxxxFor allocating an existing data set://ddname DD DSNAME=dsname,DISP=OLD<strong>Access</strong> method services does not provide protection <strong>for</strong> data sets in a sharedenvironment. There<strong>for</strong>e, you should use DISP=OLD on the DD statement <strong>for</strong> anydata set that can be accessed improperly in a shared environment.JCL DD Statement <strong>for</strong> a VolumeTo identify and allocate a volume, include:v Volume serial numberv Dispositionv UnitThis DD statement identifies and allocates volume VSER01://VOLDD DD VOL=SER=VSER01,UNIT=3380,DISP=OLDFor in<strong>for</strong>mation on concatenated DD statements, see the FILE parameterdescriptions in Chapter 3, “Functional Command Syntax.” Examples usingconcatenated DD statements follow the description of the REPRO command thatbegins on Chapter 30, “REPRO,” on page 305. For additional in<strong>for</strong>mation about thevarious types of concatenated DD statements, see the section on special DDstatements in z/<strong>OS</strong> MVS JCL Reference.JCL DD Statement <strong>for</strong> a Non-VSAM Data SetYou can allocate non-VSAM data sets with the access method services ALLOCATEcommand. See the DD statements in the examples that follow the descriptions ofthe BLDINDEX, EXPORT, IMPORT, REPRO, and PRINT commands <strong>for</strong> additionalmethods of describing and allocating non-VSAM data sets.JCL DD Statement <strong>for</strong> a Snap DumpIf access method services encounters a condition that requires it to abnormally enda job, it takes a snap dump of virtual storage. You must write an AMSDUMP DDstatement to get the snap dump; that is,//AMSDUMP DD SYSOUT=AIf you do not supply an AMSDUMP DD statement and access method servicesencounters a condition requiring the job to abnormally end, it produces only anabbreviated dump.Chapter 1. Using <strong>Access</strong> <strong>Method</strong> <strong>Services</strong> 3

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

Saved successfully!

Ooh no, something went wrong!