Joined: 13 Dec 2006 Posts: 2 Location: Jacksonville
I am experiencing error messages during a JCL scan when I use a GDG in the LIKE parameter of the SYSUT2 dataset.
The error message I am receiving is
DSS8010E - INVALID DATA SET NAME SPECIFIED IN "LIKE"
Can anyone help?
Apart from what Srinut has mentioned i would to add few notes.
The LIKE parameter is used to copy the attributes and allocation
information for a new data set from an existing data set. LIKE is
ignored other than syntax checking if SMS is not active.
You can copy LRECL, RECFM, KEYOFF, KEYLEN, SPACE, AVGREC, and data set organization (RECORG) using the LIKE parameter. If you code any of the JCL parameters on the same DD statement as LIKE, then they override the parameter modeled by LIKE.
DO NOT use LIKE= to model the characteristics of a PDS member coded in JCL, a GDG, or a temporary data set. Also, please note that the EXPDT or RETPD dates are NOT copied by LIKE. LIKE should not be coded on the same DD statement with the SYSOUT, DYNAM or REFDD parameters.