Presentation is loading. Please wait.

Presentation is loading. Please wait.

Stephen Linkin Houston Community College 3/27/2007 © 2002 - Mike Murach & Associates, 2007 - HCC, IBM 1 SMS Facilities For Data Set Allocation.

Similar presentations


Presentation on theme: "Stephen Linkin Houston Community College 3/27/2007 © 2002 - Mike Murach & Associates, 2007 - HCC, IBM 1 SMS Facilities For Data Set Allocation."— Presentation transcript:

1

2 Stephen Linkin Houston Community College 3/27/2007 © 2002 - Mike Murach & Associates, 2007 - HCC, IBM 1 SMS Facilities For Data Set Allocation

3 3/27/2007 © 2002 - Mike Murach & Associates, 2007 - HCC, IBM2 Objectives Knowledge objectives Describe how SMS manages file creation. Distinguish between the DD parameters only for SMS- managed data sets and those for non-SMS data sets while as SMS is active on the system. Describe the functions of class. List advantages a PDSE has over a PDS Name the DD parameter used to create a PDSE. Distinguish between the REFDD parameter and the LIKE parameter.

4 3/27/2007 © 2002 - Mike Murach & Associates, 2007 - HCC, IBM3 Objectives Applied objectives Code DD parameters to create an SMS-managed data set by: a. A ssigning specific storage, data, and management classes to the data set b. L etting the ACS routines assign classes to the data set Code DD parameters to perform these functions if SMS is active on the system: a. A llocate the space for a new data set in terms of records b. M odel a new data set after an existing data set

5 3/27/2007 © 2002 - Mike Murach & Associates, 2007 - HCC, IBM4 Coding for SMS How SMS manages creation of a new data set The complete DD statement for a data set This illustrates SMS parameters in the DD statement Parameters for SMS-managed data sets Parameters used for non-SMS data sets or SMS data sets //TRANS DD DSNAME=MM01.AR.TRANS,DISP=(NEW,CATLG) STORCLASSpecifies the storage class for a data set. DATACLASSpecifies the data class for a data set. MGMTCLASSpecifies the management class for a data set. DSNTYPEAllows you to specify the type of data set being created. AVGRECSpecifies (1) the space allocation is based on record size and (2) number of records used per extent. LIKECopies data set characteristics from a specified data set. REFDDRefers back to a DD statement to copy characteristics.

6 3/27/2007 © 2002 - Mike Murach & Associates, 2007 - HCC, IBM5 SMS Code Samples To create an SMS-managed data set A DD statement that lets ACS routines choose the classes A DD statement that specifies the data class To create a data set not managed by SMS //TRANS DD DSNAME=MM01.AR.TRANS,DISP=(NEW,CATLG) //TRANS DD DSNAME=MM01.AR.TRANS,DISP=(NEW,CATLG), // DATACLAS=TRAN2 //TRANS DD DSNAME=MM01.AR.TRANS, // DISP=(NEW,CATLG), // UNIT=SYSDA,VOL=SER=MPS8BV, // SPACE=(1000,(5,3), // RLSE),AVGREC=U, // DCB=(RECFM=FB,LRECL=120)

7 3/27/2007 © 2002 - Mike Murach & Associates, 2007 - HCC, IBM6 Storage Class The syntax for STORCLAS parameter A DD statement setting storage class to MVPS100 STORCLAS=storage-class-name //TRANX DD DSNAME=MM01.TRANS.NEW, // DISP=(NEW,CATLG), // STORCLAS=MVPS100

8 3/27/2007 © 2002 - Mike Murach & Associates, 2007 - HCC, IBM7 Storage Class Examples The syntax for the DATACLAS parameter A DD statement that sets the data class to MVPD050 A DD statement that overrides the SPACE and LRECL parameters of the data class DATACLAS=data-class-name //TRANX DD DSNAME=MM01.TRANS.NEW,DISP=(NEW,CATLG), // DATACLAS=MVPD050 //TRANX DD DSNAME=MM01.TRANS.NEW,DISP=(NEW,CATLG), // DATACLAS=MVPD050,SPACE=(TRK(1,1)), // LRECL=1000

9 3/27/2007 © 2002 - Mike Murach & Associates, 2007 - HCC, IBM8 Management Class Examples The syntax for the MGMTCLAS parameter This DD statement sets class to MVPM010 MGMTCLAS=management-class-name //TRANX DD DSNAME=MM01.TRANS.NEW, // DISP=(NEW,CATLG), // MGMTCLAS= MVPM010

10 3/27/2007 © 2002 - Mike Murach & Associates, 2007 - HCC, IBM9 Additional Parameters The syntax for the DSNTYPE parameter A DD statement creating a PDSE DSNTYPE= {LIBRARY} {PDS} //TRANERR DD DSNAME=MM01.LIB.ERR(TRANERR), // DISP=(NEW,CATLG), // DSNTYPE=LIBRARY

11 3/27/2007 © 2002 - Mike Murach & Associates, 2007 - HCC, IBM10 Additional Parameters (2) The syntax for the AVGREC parameter A DD statement that uses the AVGREC parameter {U} AVGREC= {K} {M} //TRANS DD DSNAME=MM01.AR.TRANS,DISP=(NEW,CATLG), // UNIT=SYSDA,VOL=SER=MPS8BV, // SPACE=(120,(5,3)),AVGREC=K

12 3/27/2007 © 2002 - Mike Murach & Associates, 2007 - HCC, IBM11 Additional Parameters (3) The syntax for the REFDD and LIKE parameters Using the REFDD parameter to model a new data set after one defined earlier Using the LIKE parameter to model a new data set after a cataloged data set REFDD=*.stepname.ddnameLIKE=model-dataset-name //STEP1 EXEC PGM=TRNSPR1 //ARTRANS DD DSNAME=MM01.AR.TRANX,DISP=(NEW,CATLG), // UNIT=SYSDA,VOL=SER=MPS8BV, // SPACE=(TRK,(5,3),RLSE), // DCB=(RECFM=FB,LRECL=120) //STEP2 EXEC PGM=TRNSPR2 //ROTRANS DD DSNAME=MM01.RO.TRANX,DISP=(NEW,CATLG), // UNIT=SYSDA,REFDD=*.STEP1.ARTRANS Model data set //STEP1 EXEC PGM=TRNSPR1 //TRANS DD DSNAME=MM01.AP.TRANS,DISP=(NEW,CATLG), // UNIT=SYSDA,LIKE=MM01.AR.TRANS, // SPACE=(TRK,(1,1))

13 3/27/2007 © 2002 - Mike Murach & Associates, 2007 - HCC, IBM12 End Presentation


Download ppt "Stephen Linkin Houston Community College 3/27/2007 © 2002 - Mike Murach & Associates, 2007 - HCC, IBM 1 SMS Facilities For Data Set Allocation."

Similar presentations


Ads by Google