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,
// UNIT=3390,SPACE=(CYL,(1,1)),
// DSORG=PS,RECFM=FB,LRECL=80,BLKSIZE=27920,
// DISP=(NEW,CATLG,DELETE)
… 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?