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


Examples of the LIKE parameter

z/OS MVS JCL Reference
SA23-1385-00

Example 1
//SMSDS6  DD  DSNAME=MYDS6.PGM,LIKE=MYDSCAT.PGM,DISP=(NEW,KEEP)

In the example, the data set attributes used for MYDS6.PGM are obtained from the cataloged model data set MYDSCAT.PGM.

Example 2
//SMSDS7  DD  DSNAME=MYDS7.PGM,LIKE=MYDSCAT.PGM,DISP=(NEW,KEEP),
//          LRECL=1024

In the example, the data set attributes used for MYDS7.PGM are obtained from the cataloged model data set MYDSCAT.PGM. Also, the logical record length of 1024 overrides the logical record length obtained from the model data set.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014