View previous topic :: View next topic
|
Author |
Message |
janusman
New User
Joined: 09 Sep 2008 Posts: 31 Location: India
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Please post the complete jcl and control statements that are being used. |
|
Back to top |
|
|
janusman
New User
Joined: 09 Sep 2008 Posts: 31 Location: India
|
|
|
|
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
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 |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
Probably because &SDATE and &CDATE are nowhere to be found. |
|
Back to top |
|
|
janusman
New User
Joined: 09 Sep 2008 Posts: 31 Location: India
|
|
|
|
&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 |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1788 Location: Bloomington, IL
|
|
|
|
What version of XMITIP are you running? |
|
Back to top |
|
|
MBabu
Active User
Joined: 03 Aug 2008 Posts: 400 Location: Mumbai
|
|
|
|
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 |
|
|
janusman
New User
Joined: 09 Sep 2008 Posts: 31 Location: India
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Suggest you browse this dataset:
TKSSP.A1007611.XMITIP |
|
Back to top |
|
|
janusman
New User
Joined: 09 Sep 2008 Posts: 31 Location: India
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
You're welcome - sorry that it won't work "as is"
Possibly, the current release could be downloaded/installed?
d |
|
Back to top |
|
|
|