Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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: 193
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: 4648
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: 193
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: 4648
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: 193
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 EMAIL using IEBGENER - SMTP parasmalik20 JCL & VSAM 4 Tue May 23, 2017 12:19 am
No new posts Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm
No new posts DSNACCOX (can it be run on 1 db/ts, t... SRICOBSAS DB2 3 Sat May 06, 2017 12:59 am
No new posts SMTP the current generation number of... Jyothi Kulunde JCL & VSAM 4 Thu May 04, 2017 4:08 pm
No new posts LISTIDR compiled date/time jerryte IBM Tools 3 Thu Apr 20, 2017 7:37 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us