View previous topic :: View next topic
|
Author |
Message |
selvaraja
New User
Joined: 04 Apr 2008 Posts: 17 Location: Maryland
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
What does the manual tell you? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Or, what happens if you try it?
Suggest 2 rather small test files. . .
d |
|
Back to top |
|
|
selvaraja
New User
Joined: 04 Apr 2008 Posts: 17 Location: Maryland
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
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 |
|
|
selvaraja
New User
Joined: 04 Apr 2008 Posts: 17 Location: Maryland
|
|
|
|
it worked and i got an email with two attachment. Thanks dick |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
You're welcome - good to hear it is working
Thanks for letting us know,
d |
|
Back to top |
|
|
|