View previous topic :: View next topic
|
Author |
Message |
rajatbagga
Active User
Joined: 11 Mar 2007 Posts: 199 Location: india
|
|
|
|
hello,
I am using following JCL to send a error report to my client.
Code: |
//VZM1CKVB JOB (3GAHF3,R),
// 'RAJAT TEST',CLASS=X,MSGCLASS=Y,NOTIFY=&SYSUID
//SENDNOT EXEC PGM=SYNCGENR
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//SYSUT1 DD*
HELO MVSHOST.COM
MAIL FROM:<MISHRA_ROHAN@yahoo.COM>
RCPT TO:<MISHRA_ROHAN@yahoo.COM>
RCPT TO:<MISHRA_ROHAN@YAHOO.CO.IN>
RCPT TO:<MISHRA_ROHAN@HOTMAIL.COM>
RCPT TO:<RAJAT_BAGGA@yahoo.COM>
DATA
FROM:<MISHRA_ROHAN@yahoo.COM>
TO:<MISHRA_ROHAN@yahoo.COM>
TO:<MISHRA_ROHAN@YAHOO.CO.IN>
TO:<MISHRA_ROHAN@HOTMAIL.COM>
TO:<RAJAT_BAGGA@yahoo.COM>
SUBJECT:TEST MAIL COMPLETE "current date & time required"
MIME-VERSION: 1.0
CONTENT-TYPE: MULTIPART/MIXED; BOUNDARY="55266=15045=:257"
THIS IS A MULTI-PART MESSAGE IN MIME FORMAT.
--55266=15045=:257
THIS IS IMPLICITLY TYPED PLAIN ASCII TEXT.
"current date & time required"
--55266=15045=:257
CONTENT-TYPE: TEXT/PLAIN; CHARSET=US-ASCII; NAME="ERROR.TXT"
CONTENT-TRANSFER-ENCODING: QUOTED-PRINTABLE
CONTENT-DISPOSITION: ATTACHMENT; FILENAME="ERROR.TXT"
RAJAT
--55266=15045=:257--
/*
//SYSUT2 DD SYSOUT=(A,SMTP)
//* |
My requirement is to have current date and time in the subject of email
and also in the body of message.
Can anybody tell me how this task can be accomplished.
Thanks
Rajat |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
I've noticed that you're using SYNCGENR, which makes me think that you have SYNCSORT on your system. If you use SYNCSORT instead, aren't there variables for date and time that you can use to supply those values?
Or, how about using the EZACFSM1 program instead? |
|
Back to top |
|
|
rajatbagga
Active User
Joined: 11 Mar 2007 Posts: 199 Location: india
|
|
|
|
hello Superk,
superk wrote: |
Or, how about using the EZACFSM1 program instead? |
How to use EZACFSM1 i have never heard it. kindly help..
Regards,
Rajat |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
Back to top |
|
|
rajatbagga
Active User
Joined: 11 Mar 2007 Posts: 199 Location: india
|
|
|
|
Thanks Superk,
I wanted to write current date and time in a PS file , I did it by using ICEMAN utility. |
|
Back to top |
|
|
|