1 / 12

SMS Facilities For Data Set Allocation

SMS Facilities For Data Set Allocation . Chapter 13. 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.

tadeo
Download Presentation

SMS Facilities For Data Set Allocation

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. SMS Facilities For Data Set Allocation Chapter 13 © 2002 - Mike Murach & Associates, 2007 - HCC, IBM

  2. 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. © 2002 - Mike Murach & Associates, 2007 - HCC, IBM

  3. Objectives • Applied objectives • Code DD parameters to create an SMS-managed data set by: • Assigning specific storage, data, and management classes to the data set • Letting the ACS routines assign classes to the data set • Code DD parameters to perform these functions if SMS is active on the system: • Allocate the space for a new data set interms of records • Model a new data set after an existing data set © 2002 - Mike Murach & Associates, 2007 - HCC, IBM

  4. 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) AVGREC Specifies (1) the space allocation is based on record size and (2) number of records used per extent. LIKE Copies data set characteristics from a specified data set. REFDD Refers back to a DD statement to copy characteristics. STORCLAS Specifies the storage class for a data set. DATACLAS Specifies the data class for a data set. MGMTCLAS Specifies the management class for a data set. DSNTYPE Allows you to specify the type of data set being created. © 2002 - Mike Murach & Associates, 2007 - HCC, IBM

  5. SMS Code Samples //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) • 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 © 2002 - Mike Murach & Associates, 2007 - HCC, IBM

  6. 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 © 2002 - Mike Murach & Associates, 2007 - HCC, IBM

  7. 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 © 2002 - Mike Murach & Associates, 2007 - HCC, IBM

  8. 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 © 2002 - Mike Murach & Associates, 2007 - HCC, IBM

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

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

  11. //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 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.ddname LIKE=model-dataset-name //STEP1 EXEC PGM=TRNSPR1//TRANS DD DSNAME=MM01.AP.TRANS,DISP=(NEW,CATLG),// UNIT=SYSDA,LIKE=MM01.AR.TRANS,// SPACE=(TRK,(1,1)) © 2002 - Mike Murach & Associates, 2007 - HCC, IBM

  12. End Presentation © 2002 - Mike Murach & Associates, 2007 - HCC, IBM

More Related