Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Email with attachments using IEBGENER
Hello,

I'm a newbie in COBOL and trying to setup a JCL to send email with
mutiple attachments.  It works fine if I let it auto-define the names
of each file.  But if I want to assign a specific name to each of the
attached files, it appends all files into the first one.

Can someone shed me some lights on this?  Thanks.

This is my JCL...

//STEP01 EXEC PGM=IEBGENER
//SYSIN DD DUMMY
//SYSUT2 DD SYSOUT=(B,SMTP)
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DSN=ABC.DEF.HEADER1,DISP=SHR
//       DD DSN=ABC.DEF.FILE1,DISP=SHR
//       DD DSN=ABC.DEF.HEADER2,DISP=SHR
//       DD DSN=ABC.DEF.FILE2,DISP=SHR

This is HEADER1...
HELO CCC01
MAIL FROM:<JDOE@MYEMAIL.COM>
RCPT TO:<JDOE@MYEMAIL.COM>
DATA
SUBJECT: TEST REPORT ATTACHMENTS (FILE1 AND FILE2)
MIME-VERSION: 1.0
CONTENT-TYPE: MULTIPART/MIXED;BOUNDARY="MIME.PART"
<blank line>
--MIME.PART
<blank line>
--MIME.PART
CONTENT-TYPE: MULTIPART/MIXED;NAME="FILE1.TXT"
<blank line>

This is HEADER2...
--MIME.PART
CONTENT-TYPE: MULTIPART/MIXED; NAME="FILE2.TXT"
<blank line>


Report this thread to moderator Post Follow-up to this message
Old Post
kathie
05-05-05 08:55 PM


Re: Email with attachments using IEBGENER
Doesn't answer you question but you could look into XMITIP which I think can
do this without having to send the smtp commands directly.

JCE

"kathie" <kktbva@yahoo.com> wrote in message
news:1115136705.702138.86770@f14g2000cwb.googlegroups.com...
> Hello,
>
> I'm a newbie in COBOL and trying to setup a JCL to send email with
> mutiple attachments.  It works fine if I let it auto-define the names
> of each file.  But if I want to assign a specific name to each of the
> attached files, it appends all files into the first one.
>
> Can someone shed me some lights on this?  Thanks.
>
> This is my JCL...
>
> //STEP01 EXEC PGM=IEBGENER
> //SYSIN DD DUMMY
> //SYSUT2 DD SYSOUT=(B,SMTP)
> //SYSOUT DD SYSOUT=*
> //SYSPRINT DD SYSOUT=*
> //SYSUT1 DD DSN=ABC.DEF.HEADER1,DISP=SHR
> //       DD DSN=ABC.DEF.FILE1,DISP=SHR
> //       DD DSN=ABC.DEF.HEADER2,DISP=SHR
> //       DD DSN=ABC.DEF.FILE2,DISP=SHR
>
> This is HEADER1...
> HELO CCC01
> MAIL FROM:<JDOE@MYEMAIL.COM>
> RCPT TO:<JDOE@MYEMAIL.COM>
> DATA
> SUBJECT: TEST REPORT ATTACHMENTS (FILE1 AND FILE2)
> MIME-VERSION: 1.0
> CONTENT-TYPE: MULTIPART/MIXED;BOUNDARY="MIME.PART"
> <blank line>
> --MIME.PART
> <blank line>
> --MIME.PART
> CONTENT-TYPE: MULTIPART/MIXED;NAME="FILE1.TXT"
> <blank line>
>
> This is HEADER2...
> --MIME.PART
> CONTENT-TYPE: MULTIPART/MIXED; NAME="FILE2.TXT"
> <blank line>
>



Report this thread to moderator Post Follow-up to this message
Old Post
jce
05-07-05 08:55 AM


Re: Email with attachments using IEBGENER
Doesn't answer you question but you could look into XMITIP which I think can
do this without having to send the smtp commands directly.

JCE

"kathie" <kktbva@yahoo.com> wrote in message
news:1115136705.702138.86770@f14g2000cwb.googlegroups.com...
> Hello,
>
> I'm a newbie in COBOL and trying to setup a JCL to send email with
> mutiple attachments.  It works fine if I let it auto-define the names
> of each file.  But if I want to assign a specific name to each of the
> attached files, it appends all files into the first one.
>
> Can someone shed me some lights on this?  Thanks.
>
> This is my JCL...
>
> //STEP01 EXEC PGM=IEBGENER
> //SYSIN DD DUMMY
> //SYSUT2 DD SYSOUT=(B,SMTP)
> //SYSOUT DD SYSOUT=*
> //SYSPRINT DD SYSOUT=*
> //SYSUT1 DD DSN=ABC.DEF.HEADER1,DISP=SHR
> //       DD DSN=ABC.DEF.FILE1,DISP=SHR
> //       DD DSN=ABC.DEF.HEADER2,DISP=SHR
> //       DD DSN=ABC.DEF.FILE2,DISP=SHR
>
> This is HEADER1...
> HELO CCC01
> MAIL FROM:<JDOE@MYEMAIL.COM>
> RCPT TO:<JDOE@MYEMAIL.COM>
> DATA
> SUBJECT: TEST REPORT ATTACHMENTS (FILE1 AND FILE2)
> MIME-VERSION: 1.0
> CONTENT-TYPE: MULTIPART/MIXED;BOUNDARY="MIME.PART"
> <blank line>
> --MIME.PART
> <blank line>
> --MIME.PART
> CONTENT-TYPE: MULTIPART/MIXED;NAME="FILE1.TXT"
> <blank line>
>
> This is HEADER2...
> --MIME.PART
> CONTENT-TYPE: MULTIPART/MIXED; NAME="FILE2.TXT"
> <blank line>
>



Report this thread to moderator Post Follow-up to this message
Old Post
jce
05-11-05 01:55 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Cobol archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 08:01 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.