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

How to send multiple attachments in email


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

New User


Joined: 21 Aug 2007
Posts: 3
Location: india

PostPosted: Fri Feb 15, 2008 6:33 pm
Reply with quote

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
View user's profile Send private message
ram prasad

New User


Joined: 28 May 2007
Posts: 17
Location: india

PostPosted: Mon Feb 18, 2008 10:17 am
Reply with quote

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
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Wed Feb 20, 2008 5:28 am
Reply with quote

Dilip,

This has already been discussed and i remember once answering on this topic. Do search the forums.
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Wed Feb 20, 2008 5:46 am
Reply with quote

Ram,
how can you have 2 SYSUT1 DD statements in the one STEP ?

Only the first one will be actioned.


Gerry
Back to top
View user's profile Send private message
ram prasad

New User


Joined: 28 May 2007
Posts: 17
Location: india

PostPosted: Wed Feb 20, 2008 9:35 am
Reply with quote

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
View user's profile Send private message
dilipalavane

New User


Joined: 21 Aug 2007
Posts: 3
Location: india

PostPosted: Fri Feb 22, 2008 4:40 pm
Reply with quote

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
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 INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Multiple table unload using INZUTILB DB2 2
No new posts Grouping by multiple headers DFSORT/ICETOOL 7
No new posts How to append a PS file into multiple... JCL & VSAM 3
Search our Forums:

Back to Top