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
 

 

How to send multiple attachments in email

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: How to send multiple attachments in email
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    Post subject:
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: 1288
Location: Chennai, India

PostPosted: Wed Feb 20, 2008 5:28 am    Post subject: Reply to: How to send multiple attachments in email
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: 1703
Location: Australia

PostPosted: Wed Feb 20, 2008 5:46 am    Post subject:
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    Post subject: Reply to: How to send multiple attachments in email
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Reading data from PS file and send it... rajatbagga All Other Mainframe Topics 18 Fri Sep 23, 2016 12:51 pm
No new posts Converting multiple VB files to FB fi... Viswanath Reddy JCL & VSAM 6 Mon Aug 08, 2016 11:49 pm
No new posts Execute multiple DB2 Load commands in... faizm DB2 4 Wed Aug 03, 2016 12:53 pm
This topic is locked: you cannot edit posts or make replies. JCL MULTIPLE STEP EXECUTION QUERY Susanta JCL & VSAM 18 Sat Jul 30, 2016 1:17 pm
No new posts Send parameter for macro STIMERM from... Daniel Teolotitla PL/I & Assembler 13 Tue Jul 05, 2016 9:23 pm


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