When I try to use system symbols &LYYMMDD and &LHHMMSS as part of a data set name in a standard JCL stream, z/OS appears not to recognize them. For example, when I submit this job …
//IEFBR14 JOB ,,CLASS=A,MSGCLASS=X,NOTIFY=&SYSUID
//IEFBR14 EXEC PGM=IEFBR14
//FILE DD DSN=TSTJV.D&LYYMMDD..T&LHHMMSS,
… I get this message:
IEFC627I INCORRECT USE OF AMPERSAND IN THE DSN FIELD
The message description is unenlightening. I haven’t found anything in the documentation that says I need to do something special to make the symbols available. I see the symbols in a few places in ROCKET.USER.PROCLIB, but if I invoke my JCL as a proc, I get the same error.
Any ideas about what might be going on?
IBM manual says…
The following rules govern the use of system symbols:
Have a look at item 1