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: 8057
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 EMAIL using IEBGENER - SMTP parasmalik20 JCL & VSAM 4 Tue May 23, 2017 12:19 am
This topic is locked: you cannot edit posts or make replies. SDSF multiple spool datasets extracte... PJAlarcon CLIST & REXX 1 Fri Apr 21, 2017 10:50 pm
No new posts Data replication from multiple Db2 ta... kishpra DB2 9 Mon Mar 27, 2017 9:58 pm
No new posts Splitting of single report to seperat... abdulrafi TSO/ISPF 7 Mon Mar 27, 2017 3:59 pm
No new posts Append data from two files into a sin... Praveen04 DFSORT/ICETOOL 5 Thu Mar 16, 2017 7:29 pm


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