Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Current Date & Time in Email Subject

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
rajatbagga

Active User


Joined: 11 Mar 2007
Posts: 195
Location: india

PostPosted: Fri Mar 14, 2008 6:34 pm    Post subject: Current Date & Time in Email Subject
Reply with quote

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
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4650
Location: Raleigh, NC, USA

PostPosted: Fri Mar 14, 2008 8:13 pm    Post subject: Reply to: Current Date & Time in Email Subject
Reply with quote

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
View user's profile Send private message
rajatbagga

Active User


Joined: 11 Mar 2007
Posts: 195
Location: india

PostPosted: Fri Mar 14, 2008 10:11 pm    Post subject: Re: Reply to: Current Date & Time in Email Subject
Reply with quote

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
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4650
Location: Raleigh, NC, USA

PostPosted: Fri Mar 14, 2008 11:18 pm    Post subject: Reply to: Current Date & Time in Email Subject
Reply with quote

Do a search here. Plenty of examples.

The EZACFSM1 program is part of TCP/IP. It is known as the "symbol translator utility". EZACFSM1 reads an input file and writes to an output file, translating any symbols in the process.

See reference here: http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/f1a1b330/1.1.9.1?DT=20030829121943

The symbols it translates are the MVS built-in dynamic system symbols. A basic set is provided by IBM, and others can be created by your MVS systems programmers. You can check here for the list of standard dynamic system variables: http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IEA1E241/2.2.2
Back to top
View user's profile Send private message
rajatbagga

Active User


Joined: 11 Mar 2007
Posts: 195
Location: india

PostPosted: Mon Mar 17, 2008 11:55 pm    Post subject:
Reply with quote

Thanks Superk,

I wanted to write current date and time in a PS file , I did it by using ICEMAN utility.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts sending email from jcl using the mail... niloyarp JCL & VSAM 5 Tue Oct 10, 2017 12:32 pm
This topic is locked: you cannot edit posts or make replies. 00D3003B - time outs in DB2 when invo... chavinash2004 DB2 2 Mon Oct 09, 2017 4:39 pm
No new posts VSAM RLS Wait time blayek JCL & VSAM 2 Mon Oct 02, 2017 9:05 pm
No new posts Compare yesterday's date to the one o... migusd SYNCSORT 11 Fri Sep 22, 2017 11:35 pm
No new posts Comparing 2 Files using Current time arunsoods SYNCSORT 9 Fri Sep 22, 2017 6:00 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us