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

Include date in Filename when using XMITIP


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
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
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

Moderator Emeritus


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

PostPosted: Sat Nov 07, 2009 12:08 am
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
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: 6966
Location: porcelain throne

PostPosted: Sat Nov 07, 2009 1:16 am
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
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: 1788
Location: Bloomington, IL

PostPosted: Sat Nov 07, 2009 1:44 am
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: 400
Location: Mumbai

PostPosted: Sat Nov 07, 2009 1:46 am
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
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

Moderator Emeritus


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

PostPosted: Sat Nov 07, 2009 2:21 am
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
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

Moderator Emeritus


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

PostPosted: Sat Nov 07, 2009 2:43 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts Need to convert date format DFSORT/ICETOOL 20
No new posts Need help to append a date&tsp at... DFSORT/ICETOOL 9
No new posts Fetch data from programs execute (dat... DB2 3
Search our Forums:

Back to Top