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.

ALLOCATE//ALLOC JOB ...//STEP1 EXEC PGM=IDCAMS//SYSPRINT DD SYSOUT=A//SYSABEND DD SYSOUT=A/SYSIN DD *ALLOC -DSNAME(NONVSAM.EXAMPLE) -NEW -DATACLAS(PS000000) -MGMTCLAS(S1P01M01) -STORCLAS(S1P01S01)/*The parameters are:vvvvvDSNAME specifies that the name of the data set to be allocated isNONVSAM.EXAMPLE.NEW creates the data set does.isDATACLAS assigns an installation-defined name (PS000000) of a data class tothis new data set. This parameter is optional and, if not used, the data setassumes the default data class assigned by the ACS routines.MGMTCLAS assigns an installation-defined name (S1P01M01) of a managementclass to this new data set. The data set assumes the migration and backupcriteria assigned to this management class by the ACS routines. This parameteris optional and, if not used, the data set assumes the default management classassigned by the ACS routines.STORCLAS assigns an installation-defined name (S1P01S01) of a storage class tothis new data set. This storage class and the ACS routines determine the volume.This parameter is optional and, if not used, the data set assumes the defaultstorage class assigned by the ACS routines.Allocate a Partitioned Data Set Extended: Example 5This example shows the ALLOCATE command being used with the DSNTYPEkeyword to allocate a PDSE.//ALLOC EXEC PGM=IDCAMS,DYNAMNBR=1//SYSPRINT DD SYSOUT=A//SYSIN DD *ALLOC -DSNAME(XMP.ALLOCATE.EXAMPLE1) -NEW -STORCLAS(SC06) -MGMTCLAS(MC06) -DSNTYPE(LIBRARY)/*The parameters are:vvvvvDSNAME specifies that the name of the data set to be allocated isXMP.ALLOCATE.EXAMPLE1.NEW creates the data set.STORCLAS uses the SC06 storage class definition <strong>for</strong> this data set.MGMTCLAS uses the SC06 management class definition <strong>for</strong> this data set.DSNTYPE(LIBRARY) indicates that the object being allocated is anSMS-managed PDSE.Chapter 4. ALLOCATE 51

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

Saved successfully!

Ooh no, something went wrong!