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 How syntax check at Bind time is diff... Poha Eater DB2 5 Wed Mar 21, 2018 9:16 pm
No new posts Merging records, but not all the time prino DFSORT/ICETOOL 17 Sat Feb 17, 2018 4:20 pm
No new posts Need to identify top 10 costly or tim... ashek15 DB2 4 Wed Feb 14, 2018 3:20 am
No new posts Logic to skip Maximum time-stamp and ... vickey_dw DB2 2 Thu Feb 01, 2018 11:15 pm
No new posts Query to skip Max time-stamp and fetc... vickey_dw DB2 8 Sun Jan 28, 2018 1:09 am

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