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

How to send two attachments in single email using XMITIP?


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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: 8696
Location: Dubuque, Iowa, USA

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

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

Moderator Emeritus


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

PostPosted: Sat Jun 20, 2009 1:00 am
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
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

Moderator Emeritus


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

PostPosted: Sat Jun 20, 2009 2:12 am
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
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

Moderator Emeritus


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

PostPosted: Sat Jun 20, 2009 3:05 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts How to append a PS file into multiple... JCL & VSAM 3
No new posts Submit multiple jobs from a library t... JCL & VSAM 14
No new posts Convert single row multi cols to sing... DFSORT/ICETOOL 6
No new posts Merge 2 lines based on Space from a S... DFSORT/ICETOOL 5
No new posts REXX to send an email in Mainframe wi... CLIST & REXX 3
Search our Forums:

Back to Top