I am able to add date variables to the subject of my email. When I try this with the filename, it actually displays the text "&DATE" instead of the date.
Can someone please help with the syntax required to add the date to a filename? Here is the JCL:
//TJOB01 EXEC PGM=IKJEFT1B,COND=(0,NE)
//SYSEXEC DD DSN=T.CLIST,DISP=SHR
//SYSPRINT DD SYSOUT=(,)
//SYSTSPRT DD SYSOUT=(,)
//EMAILFLE DD DSN=RPT.OUTPUT(+0),
// DISP=SHR
//EMAILMSG DD *
/*
//SYSTSIN DD *
%XMITIP 'TEST'<TEST@TEST.COM> -
FROM 'TEST'<TEST@TEST.COM> -
REPLYTO 'TEST '<TEST@TEST.COM> -
FILEDD EMAILFLE -
FILENAME &UDATE-TEST.XLS -
FORMAT XLS -
MSGDD EMAILMSG -
SUBJECT 'TEST REPORT &DATE'
//SYSEXEC DD DSN=T.CLIST,DISP=SHR
//SYSPRINT DD SYSOUT=(,)
//SYSTSPRT DD SYSOUT=(,)
//EMAILFLE DD DSN=RPT.OUTPUT(+0),
// DISP=SHR
//EMAILMSG DD *
/*
//SYSTSIN DD *
%XMITIP 'TEST'<TEST@TEST.COM> -
FROM 'TEST'<TEST@TEST.COM> -
REPLYTO 'TEST '<TEST@TEST.COM> -
FILEDD EMAILFLE -
FILENAME &UDATE-TEST.XLS -
FORMAT XLS -
MSGDD EMAILMSG -
SUBJECT 'TEST REPORT &DATE'