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
 

 

Include date in Filename when using XMITIP

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
janusman

New User


Joined: 09 Sep 2008
Posts: 31
Location: India

PostPosted: Sat Nov 07, 2009 12:03 am    Post subject: Include date in Filename when using XMITIP
Reply with quote

Hi

I am trying to include date as a part of file name in the attachment when sending mails using XMITIP.

I tried the following

FILENAME (File1-&DATE.txt &DATE_File2.txt -
File3.&DATE.txt File4.&DATE.txt) -
SUBJECT 'Daily Kickout Reports dated &DATE'

The attachment is named as file1-&date and not actual date is displayed in the file name.

Same is the case with subject. Except for &DATE (which is working) CDATE and SDATE are not working.

Anything am missing?

Thanks in advance.
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Sat Nov 07, 2009 12:08 am    Post subject:
Reply with quote

Hello,

Please post the complete jcl and control statements that are being used.
Back to top
View user's profile Send private message
janusman

New User


Joined: 09 Sep 2008
Posts: 31
Location: India

PostPosted: Sat Nov 07, 2009 12:41 am    Post subject:
Reply with quote

Hi

Here is the JCL.

Code:
//EMAIL    EXEC PGM=IKJEFT1B,COND=(0,EQ,STEP2)                 
//SYSEXEC   DD DSN=TKSSP.A1007611.XMITIP,DISP=SHR                       
//STEPLIB   DD DSN=SYSBLC.COB2.V3R2.LINKLIB,DISP=SHR           
//SYSTCPD   DD DSN=SHRSYS.TCPIP.V34.PARMLIB(TCPDATA),DISP=SHR
//ADDRESS   DD DSN=ID.UTILITY.ERROR(ADDR),DISP=SHR             
//LETTER    DD DSN=ID.UTILITY.ERROR(LTTR),DISP=SHR             
//FILE1     DD DISP=SHR,DSN=FILE1.TITLE   
//          DD DISP=SHR,DSN=FILE1
//FILE2     DD DISP=SHR,DSN=FILE2.TITLE
//          DD DISP=SHR,DSN=FILE2
//FILE3     DD DISP=SHR,DSN=FILE3.TITLE
//          DD DISP=SHR,DSN=FILE3
//FILE4     DD DISP=SHR,DSN=FILE4.TITLE
//          DD DISP=SHR,DSN=FILE4
//SYSTSIN   DD DSN=ID.UTILITY.ERROR(EMAIL),DISP=SHR             
//SYSTSPRT  DD SYSOUT=*                                         
//SYSPRINT  DD SYSOUT=*   

Code'd


ID.UTILITY.ERROR(EMAIL)

Code:
****** ***************************** Top of Data ******************************
000001  %XMITIP * -                                                           
000002  FROM <my email ID> -                                         
000003  ADDRESSFILEDD ADDRESS -                                               
000004  MSGDD LETTER -                                                         
000005  FILEDD (FILE1 FILE2 FILE3 FILE4) -                         
000006  FILENAME (FILE1..&DATE.txt &DATE.FILE2.txt -                     
000007  FILE3.&DATE.txt FILE4.&DATE..txt) -                             
000008  SUBJECT 'Daily Kickout Reports dated &DATE'               
****** **************************** Bottom of Data ****************************

Code'd

I tried FILE1.&DATE, &DATE.FILE1, FILE1-&DATE and a couple of more combination. None of them seem to work icon_sad.gif

In SUBJECT - &DATE alone is being replaced by today's date. SDATE and CDATE are not working. They are being displayed as just &SDATE and &CDATE.

Please let me know if you need more info.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6967
Location: porcelain throne

PostPosted: Sat Nov 07, 2009 1:16 am    Post subject:
Reply with quote

Probably because &SDATE and &CDATE are nowhere to be found.
Back to top
View user's profile Send private message
janusman

New User


Joined: 09 Sep 2008
Posts: 31
Location: India

PostPosted: Sat Nov 07, 2009 1:19 am    Post subject:
Reply with quote

&SDATE and &CDATE are supported symbolics as per the XMITIP guide that some one posted in this forum. That's how I came to know we can even use symbolics in file names.

Anyways - &Date is supported in FILENAME and SUBJECT. But - I am still not getting my filenames to have date.

its just being names as FILE1.&DATE.txt in the attachment.
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1754
Location: Bloomington, IL

PostPosted: Sat Nov 07, 2009 1:44 am    Post subject:
Reply with quote

What version of XMITIP are you running?
Back to top
View user's profile Send private message
MBabu

Active User


Joined: 03 Aug 2008
Posts: 401
Location: Mumbai

PostPosted: Sat Nov 07, 2009 1:46 am    Post subject:
Reply with quote

a quick google search shows that this support was added fairly recently (Feb 09, ver 9.02. Is your version of XMITIP recent? The XMITIP user guide is in the download file for the program.
Back to top
View user's profile Send private message
janusman

New User


Joined: 09 Sep 2008
Posts: 31
Location: India

PostPosted: Sat Nov 07, 2009 1:53 am    Post subject:
Reply with quote

Thanks for the reply.

I guess my version of XMITIP is very old.

I am not sure from where I can see that.

Here is wat I got from Spool of the jobs.

XMITIP: XMITIP Application level: 4.12
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Sat Nov 07, 2009 2:21 am    Post subject:
Reply with quote

Hello,

Suggest you browse this dataset:
TKSSP.A1007611.XMITIP
Back to top
View user's profile Send private message
janusman

New User


Joined: 09 Sep 2008
Posts: 31
Location: India

PostPosted: Sat Nov 07, 2009 2:25 am    Post subject:
Reply with quote

Thanks a lot D.Sch

I could not find any CDATE or SDATE in XMITIP in TKSSP.A1007611.XMITIP

and this version supports only &Date in subject and not in Filename.

Thanks for the help.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Sat Nov 07, 2009 2:43 am    Post subject: Reply to: Include date in Filename when using XMITIP
Reply with quote

You're welcome - sorry that it won't work "as is" icon_confused.gif

Possibly, the current release could be downloaded/installed?

d
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 -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm
No new posts LISTIDR compiled date/time jerryte IBM Tools 3 Thu Apr 20, 2017 7:37 pm
No new posts SUBSTR for Date functions Shaheen Shaik DB2 4 Thu Apr 06, 2017 2:14 pm
No new posts Splitting of single report to seperat... abdulrafi TSO/ISPF 7 Mon Mar 27, 2017 3:59 pm
No new posts Date and time format in CICS Chandru3183 CICS 2 Sat Mar 18, 2017 12:46 pm


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