Thanks for the quick response.
Below pasted is the jcl that i have been using.
//JOBCARD JOB ( , ),'MAILPGM',CLASS=R,MSGCLASS=U,
//SYMBOLS EXEC PGM=EZACFSM1
//SYSOUT DD DSN=USERID.TEST.CNTL(EMAIL2),DISP=SHR
//SYSIN DD *
SUBJECT: DAILY STATUS REPORT OF THE JOBS '&YYMMDD'
//STEP020 EXEC PGM=IEBGENER
//SYSUT1 DD DSN=USERID.TEST.CNTL(EMAIL),DISP=SHR
// DD DSN=USERID.TEST.CNTL(EMAIL2),DISP=SHR
//SYSUT2 DD SYSOUT=(B,SMTP)
//SYSIN DD DUMMY
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
where the USERID.TEST.CNTL(EMAIL) file contains:-
With the help of above i could able to get the current date but the subject line is missing in the mail and its appearing in the body of the message. Also i couldn't able to accomplish my above requirement of previous date .Some times we will normally be running the report after midnight after completion of few job's and we do need to put in previous date in the subject line.
We have syncsort 22.214.171.124R currently in our shop.I heard that we can't able to perform any date manipulations in this version of syncsort .
Please kindly let me know if there's a way in achieving my requirement.