No Slide Title

Download Report

Transcript No Slide Title

SMS Facilities For Data Set
Allocation
Stephen Linkin
Houston Community College
3/27/2007
© 2002 - Mike Murach & Associates,
2007 - HCC, IBM
1
Objectives

Knowledge objectives






3/27/2007
Describe how SMS manages file creation.
Distinguish between the DD parameters only for SMSmanaged 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
2
Objectives

Applied objectives

Code DD parameters to create an SMS-managed data set
by:
a.
b.

Code DD parameters to perform these
functions if SMS is active on the system:
a.
b.
3/27/2007
Assigning specific storage, data, and management classes
to the data set
Letting the ACS routines assign classes to the
data set
Allocate the space for a new data set in
terms of records
Model a new data set after an existing
data set
© 2002 - Mike Murach & Associates,
2007 - HCC, IBM
3
Coding for SMS

How SMS manages creation of a new data set
 The complete DD statement for a data set
//TRANS DD DSNAME=MM01.AR.TRANS,DISP=(NEW,CATLG)

This illustrates SMS parameters in the DD statement
 Parameters for SMS-managed data sets
AVGREC
STORCLAS
DATACLAS
LIKE
MGMTCLAS
REFDD
DSNTYPE

3/27/2007
Specifies (1)
spaceclass
allocation
is based
thethe
storage
for a data
set. on record size
and
(2) number
of records
per
extent.
Specifies
the data
class forused
a data
set.
Copies
data
characteristics
specified
Specifies
theset
management
classfrom
for aa data
set. data set.
Refers
tospecify
a DD statement
to data
copyset
characteristics.
Allows back
you to
the type of
being created.
Parameters used for non-SMS data sets or SMS data sets
© 2002 - Mike Murach & Associates,
2007 - HCC, IBM
4
SMS Code Samples

To create an SMS-managed data set
//TRANS
DD
DSNAME=MM01.AR.TRANS,
 A DD statement
that lets ACS routines choose the classes
//
DISP=(NEW,CATLG),
//TRANS
DD
DSNAME=MM01.AR.TRANS,DISP=(NEW,CATLG)
//
UNIT=SYSDA,VOL=SER=MPS8BV,
//  A DD statementSPACE=(1000,(5,3),
that specifies the data class
//
RLSE),AVGREC=U,
//
DCB=(RECFM=FB,LRECL=120)
//TRANS
DD DSNAME=MM01.AR.TRANS,DISP=(NEW,CATLG),
//

DATACLAS=TRAN2
To create a data set not managed by SMS
3/27/2007
© 2002 - Mike Murach & Associates,
2007 - HCC, IBM
5
Storage Class

The syntax for STORCLAS parameter
STORCLAS=storage-class-name

A DD statement setting storage class to MVPS100
//TRANX
//
//
3/27/2007
DD
DSNAME=MM01.TRANS.NEW,
DISP=(NEW,CATLG),
STORCLAS=MVPS100
© 2002 - Mike Murach & Associates,
2007 - HCC, IBM
6
Storage Class Examples

The syntax for the DATACLAS parameter
DATACLAS=data-class-name

A DD statement that sets the data class to MVPD050
//TRANX
//

DD
DSNAME=MM01.TRANS.NEW,DISP=(NEW,CATLG),
DATACLAS=MVPD050
A DD statement that overrides the SPACE and LRECL
parameters of the data class
//TRANX
//
//
3/27/2007
DD
DSNAME=MM01.TRANS.NEW,DISP=(NEW,CATLG),
DATACLAS=MVPD050,SPACE=(TRK(1,1)),
LRECL=1000
© 2002 - Mike Murach & Associates,
2007 - HCC, IBM
7
Management Class Examples

The syntax for the MGMTCLAS parameter
MGMTCLAS=management-class-name

This DD statement sets class to MVPM010
//TRANX
//
//
3/27/2007
DD
DSNAME=MM01.TRANS.NEW,
DISP=(NEW,CATLG),
MGMTCLAS= MVPM010
© 2002 - Mike Murach & Associates,
2007 - HCC, IBM
8
Additional Parameters

The syntax for the DSNTYPE parameter
DSNTYPE= {LIBRARY}
{PDS}

A DD statement creating a PDSE
//TRANERR
//
//
3/27/2007
DD
DSNAME=MM01.LIB.ERR(TRANERR),
DISP=(NEW,CATLG),
DSNTYPE=LIBRARY
© 2002 - Mike Murach & Associates,
2007 - HCC, IBM
9
Additional Parameters (2)

The syntax for the AVGREC parameter
{U}
AVGREC= {K}
{M}

A DD statement that uses the AVGREC parameter
//TRANS
//
//
3/27/2007
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
10
Additional Parameters (3)

The syntax for the REFDD and LIKE parameters
REFDD=*.stepname.ddname
LIKE=model-dataset-name

Using the REFDD parameter to model a new data
set after one defined earlier
//STEP1
PGM=TRNSPR1
 UsingEXEC
the LIKE
parameter to model a new data set
//ARTRANS
DSNAME=MM01.AR.TRANX,DISP=(NEW,CATLG),
after aDDcataloged
data set
//
//
//STEP1
//
//TRANS
//STEP2
//
//ROTRANS
//
//
3/27/2007
UNIT=SYSDA,VOL=SER=MPS8BV,
SPACE=(TRK,(5,3),RLSE),
EXEC PGM=TRNSPR1
DCB=(RECFM=FB,LRECL=120)
DD
DSNAME=MM01.AP.TRANS,DISP=(NEW,CATLG),
EXEC PGM=TRNSPR2
UNIT=SYSDA,LIKE=MM01.AR.TRANS,
DD
DSNAME=MM01.RO.TRANX,DISP=(NEW,CATLG),
SPACE=(TRK,(1,1))
UNIT=SYSDA,REFDD=*.STEP1.ARTRANS
© 2002 - Mike Murach & Associates,
2007 - HCC, IBM
Model
data set
11
End Presentation
3/27/2007
© 2002 - Mike Murach & Associates,
2007 - HCC, IBM
12