IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Current Date & Time in Email Subject


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
rajatbagga

Active User


Joined: 11 Mar 2007
Posts: 199
Location: india

PostPosted: Fri Mar 14, 2008 6:34 pm
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

Global Moderator


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

PostPosted: Fri Mar 14, 2008 8:13 pm
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: 199
Location: india

PostPosted: Fri Mar 14, 2008 10:11 pm
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

Global Moderator


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

PostPosted: Fri Mar 14, 2008 11:18 pm
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: 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: 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: 199
Location: india

PostPosted: Mon Mar 17, 2008 11:55 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts To get the the current time DFSORT/ICETOOL 13
No new posts RC query -Time column CA Products 3
No new posts Need to convert date format DFSORT/ICETOOL 20
Search our Forums:

Back to Top