Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 8165
Location: East Dubuque, Illinois, USA

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 sending email from jcl using the mail... niloyarp JCL & VSAM 5 Tue Oct 10, 2017 12:32 pm
No new posts More than 1 Include criteria for sing... Roy Ware SYNCSORT 6 Wed Sep 13, 2017 11:45 pm
No new posts XMITIP sends it out. Can it copy on l... Rommel Dayon Rustia IBM Tools 0 Tue Sep 05, 2017 10:16 am
No new posts Multiple VSAM files single output fil... Mohan Kothakota DFSORT/ICETOOL 11 Wed Aug 09, 2017 7:57 pm
No new posts Read two inputs and write into output... murali.andaluri DFSORT/ICETOOL 6 Wed Jul 26, 2017 7:35 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us