z/OS MVS JCL Reference
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Examples of the REFDD parameter

z/OS MVS JCL Reference
SA23-1385-00

Example 1
//SMSDS6  DD  DSNAME=MYDS6.PGM,DATACLAS=DCLAS01,DISP=(NEW,KEEP),
//          LRECL=512,RECFM=FB
//SMSDS7  DD  DSNAME=MYDS7.PGM,REFDD=*.SMSDS6,DISP=(NEW,KEEP)

In the example, the data set attributes used for MYDS7.PGM are obtained from the referenced data set MYDS6.PGM.

Example 2
//SMSDS6  DD  DSNAME=MYDS6.PGM,DATACLAS=DCLAS01,DISP=(NEW,KEEP),
//          LRECL=512,RECFM=FB
//SMSDS8  DD  DSNAME=MYDS8.PGM,REFDD=*.SMSDS6,DISP=(NEW,KEEP),
//          LRECL=1024

In the example, the data set attributes used for MYDS8.PGM are obtained from the referenced data set MYDS6.PGM. Also, the logical record length of 1024 overrides the logical record length obtained from the referenced data set.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014