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 two attachments in single email using XMITIP?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
selvaraja

New User


Joined: 04 Apr 2008
Posts: 17
Location: Maryland

PostPosted: Fri Jun 19, 2009 10:36 pm    Post subject: How to send two attachments in single email using XMITIP?
Reply with quote

Hi All,
I have JCL to send emails with attachment using XMITIP.


//JSTY0010 EXEC PGM=IKJEFT01,COND=(00,NE)
//SYSPROC DD DSN=SYS7.ISPCLIB,
// DISP=(SHR,KEEP,KEEP)
//SYSPRINT DD SYSOUT=*
//SYSTSPRT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSTSIN DD *
%XMITIP -
(myemailID@gmail.COM )-
SUBJECT 'test email' -
FILE 'mydataset.file1' -
NOMSG
END
/*


Is there a way to send two attachments in single Email?
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7931
Location: Bellevue, IA

PostPosted: Fri Jun 19, 2009 10:59 pm    Post subject:
Reply with quote

What does the manual tell you?
Back to top
View user's profile Send private message
dick scherrer

Site Director


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

PostPosted: Sat Jun 20, 2009 1:00 am    Post subject: Reply to: How to send two attachments in single email using
Reply with quote

Or, what happens if you try it?

Suggest 2 rather small test files. . .

d
Back to top
View user's profile Send private message
selvaraja

New User


Joined: 04 Apr 2008
Posts: 17
Location: Maryland

PostPosted: Sat Jun 20, 2009 1:35 am    Post subject: Reply to: How to send two attachments in single email using
Reply with quote

I read some manuals but its not saying anything about two files. Please guide me where i can get more information.

ya i already tried,

first try:

//JSTY0010 EXEC PGM=IKJEFT01,COND=(00,NE)
//SYSPROC DD DSN=SYS7.ISPCLIB,
// DISP=(SHR,KEEP,KEEP)
//SYSPRINT DD SYSOUT=*
//SYSTSPRT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSTSIN DD *
%XMITIP -
(myemailID@gmail.COM )-
SUBJECT 'test email' -
FILE 'mydataset.file1' -
NOMSG
%XMITIP -
(myemailID@gmail.COM )-
SUBJECT 'test email' -
FILE 'mydataset.file2' -
NOMSG
END
/*

got two emails for each attachment .

second try

//JSTY0010 EXEC PGM=IKJEFT01,COND=(00,NE)
//SYSPROC DD DSN=SYS7.ISPCLIB,
// DISP=(SHR,KEEP,KEEP)
//SYSPRINT DD SYSOUT=*
//SYSTSPRT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSTSIN DD *
%XMITIP -
(myemailID@gmail.COM )-
SUBJECT 'test email' -
FILE 'mydataset.file1' -
FILE 'mydataset.file2' -
NOMSG
END
/*

got one email with file2.

also tried some more but got RC 8 for them.
Back to top
View user's profile Send private message
dick scherrer

Site Director


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

PostPosted: Sat Jun 20, 2009 2:12 am    Post subject:
Reply with quote

Hello,

In one step, try adding a DD for each attachment and changing the FILE statement to a FILEDD statement:
Code:

//ATT1       DD   DSN=MY.DUMB.TEST1,DISP=SHR
//ATT2       DD   DSN=MY.DUMB.TEST2,DISP=SHR

        FILEDD (ATT1 ATT2)     

The FILEDD is my last statement so it has no continuation.
Back to top
View user's profile Send private message
selvaraja

New User


Joined: 04 Apr 2008
Posts: 17
Location: Maryland

PostPosted: Sat Jun 20, 2009 2:31 am    Post subject: Reply to: How to send two attachments in single email using
Reply with quote

it worked and i got an email with two attachment. Thanks dick
Back to top
View user's profile Send private message
dick scherrer

Site Director


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

PostPosted: Sat Jun 20, 2009 3:05 am    Post subject: Reply to: How to send two attachments in single email using
Reply with quote

You're welcome - good to hear it is working icon_smile.gif

Thanks for letting us know,

d
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 Two Selects in a single select query Rohit Umarjikar DB2 1 Fri Nov 04, 2016 8:46 pm
No new posts Single COPY CICS TS datasets and when... Kyle Carroll CICS 2 Tue Oct 11, 2016 9:47 pm
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 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