View previous topic :: View next topic
|
Author |
Message |
dilipalavane
New User
Joined: 21 Aug 2007 Posts: 3 Location: india
|
|
|
|
Hi,
I want to send two files as attachment in email.
I am using IEBGENER as below:
//STEP06 EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//SYSUT2 DD SYSOUT=(A,SMTP)
//SYSUT1 DD DISP=SHR,DSN=MAIL.PARMS.INPUT.FILE
// DD DISP=SHR,DSN=FILE1.TO.SEND
This is working fine for one file as an attachment. I want to send another file e.g. FILE2.TO.SEND.
Can anybody tell me how to send multiple attachment using one step.
-Dilip. |
|
Back to top |
|
|
ram prasad
New User
Joined: 28 May 2007 Posts: 17 Location: india
|
|
|
|
HI, U can get two attachment in a sigle mail by using like this
//STEP06 EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//SYSUT2 DD SYSOUT=(A,SMTP)
//SYSUT1 DD DISP=SHR,DSN=MAIL.PARMS.INPUT.FILE
// DD DISP=SHR,DSN=FILE1.TO.SEND
//SYSUT1 DD DISP=SHR,DSN=MAIL.PARMS.INPUT.FILE2
// DD DISP=SHR,DSN=FILE2.TO.SEND
note : datasets must me in same format |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
Dilip,
This has already been discussed and i remember once answering on this topic. Do search the forums. |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Ram,
how can you have 2 SYSUT1 DD statements in the one STEP ?
Only the first one will be actioned.
Gerry |
|
Back to top |
|
|
ram prasad
New User
Joined: 28 May 2007 Posts: 17 Location: india
|
|
|
|
sorry gerry,
please find the correct one
//STEP06 EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//SYSUT2 DD SYSOUT=(A,SMTP)
//SYSUT1 DD DISP=SHR,DSN=MAIL.PARMS.INPUT.FILE
// DD DISP=SHR,DSN=FILE1.TO.SEND
// DD DISP=SHR,DSN=MAIL.PARMS.INPUT.FILE2
// DD DISP=SHR,DSN=FILE2.TO.SEND |
|
Back to top |
|
|
dilipalavane
New User
Joined: 21 Aug 2007 Posts: 3 Location: india
|
|
|
|
Ram,
The solution given by you do not work as i have already tried it. In this case three files(last three) get copied into one attachment.
In file 'MAIL.PARMS.INPUT.FILE' i am specifying following parameters:
HELO TESTING
MAIL FROM:<sender@abcd.com>
RCPT TO:<receiver@abcd.com>
DATA
FROM: <sender@abcd.com>
TO: <receiver@abcd.com>
SUBJECT: subject
MIME-VERSION: 1.0
CONTENT-TYPE: MULTIPART/MIXED;
CONTENT-DISPOSITION: ATTACHMENT; FILENAME=abcd.TXT
CONTENT-TYPE: TEXT/HTML
Can you tell how to specify parameters above for second attachment in the same mail? Or can we use some different method.
Thanks,
Dilip. |
|
Back to top |
|
|
|