z/OS DFSMS Using Data Sets
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Examples

z/OS DFSMS Using Data Sets
SC23-6855-00

An example of allocating a generation data set by supplying its DCB attributes using DATACLAS is:
   //DD1 DD DSN=GDG(+1),DISP=(NEW,CATLG),DATACLAS=ALLOCL01
The DCB attributes allocated to the new data set depend on the attributes defined in data class ALLOCL01. Your storage administrator can provide information on the attributes specified by the data classes available to your installation.
An example of referring to a cataloged data set by referring to its DD statement is:
   //DD2 DD DSN=GDG(+1),DISP=(NEW,CATLG),REFDD=DD1
The new generation data set have the same attributes as the data set defined in the first example.

You can also refer to an existing model DSCB for which you can supply overriding attributes.

To refer to an existing model, specify DCB=(modeldscbname, your attributes) on the DD statement that creates and catalogs your generation. Assume that you have a GDG base name ICFUCAT8.GDGBASE and its model DSCB name is ICFUCAT8.GDGBASE.

You can specify:
   //DD1  DD DSN=ICFUCAT8.GDGBASE(+1),DISP=(NEW,CATLG),
   //        UNIT=3380,SPACE=(TRK,(5)),VOL=SER=338001

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014