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 from JCL with attachment
OK, I've been spinning my wheels on this for a bit.

I want to send an email from a JCL *with an attachment*.

I'm able to send the email, but I can't get a file to attach.

The following JCL ( with some particulars changed to protect the innocent )
is what I have that works, so far:
//IMAUSERA JOB (,,0000,0000,0,00),'SEND AN EMAIL',

//  CLASS=N,MSGCLASS=Q,MSGLEVEL=(1,1),NOTIFY
=IMAUSER

//IEBGENER EXEC PGM=IEBGENER

//OUTPUT DD SYSOUT=*

//SYSIN DD DUMMY

//SYSUT1 DD *

HELO MBPGHA

MAIL FROM:<IMAUSER@THECO.COM>

RCPT TO:<BILL.GENTRY@NOSPAM.COM>

DATA

TO:BILL.GENTRY@NOSPAM.COM

SUBJECT: THIS IS A TEST!

MIME-VERSION: 1.0

CONTENT-TYPE: MULTIPART/MIXED;

BOUNDARY="----_=_NEXTPART_000_01C0DFAD.3EF4A2D0"

THIS MESSAGE IS IN MIME FORMAT...

------_=_NEXTPART_000_01C0DFAD.3EF4A2D0

CONTENT-TYPE: TEXT/PLAIN;

CHARSET="ISO-8859-1"

THIS IS A TEST!

FIRST MESSAGE!

SECOND MESSAGE!

------_=_NEXTPART_000_01C0DFAD.3EF4A2D0--

/*

//SYSUT2 DD SYSOUT=(X,ZSPTCPM)

//SYSOUT DD SYSOUT=*

//SYSPRINT DD SYSOUT=*



Anyone have any idea *how* I code the attachment???

Any input is appreciated!



Report this thread to moderator Post Follow-up to this message
Old Post
Bill Gentry
12-21-04 01:55 AM


Re: Email from JCL with attachment
Anyone have any idea *how* I code the attachment???

There must be a blank line between the MIME header and the body of each
part:

Each attachment would be within its own set of bondaries.

TO:BILL.GEN...@NOSPAM.COM
SUBJECT: THIS IS A TEST!
MIME-VERSION: 1.0
CONTENT-TYPE:
MULTIPART/MIXED;BOUNDARY="----_=_NEXTPART_000_01C0DFAD.3EF4A2D0"
<blank line here>
THIS MESSAGE IS IN MIME FORMAT...
----_=_NEXTPART_000_01C0DFAD.3EF4A2D0
CONTENT-TYPE: TEXT/PLAIN; CHARSET="ISO-8859-1"
<blank line here>
THIS IS A TEST!
FIRST MESSAGE!
----_=_NEXTPART_000_01C0DFAD.3EF4A2D0
CONTENT-TYPE: TEXT/PLAIN; CHARSET="ISO-8859-1"
<blank line here>
SECOND MESSAGE!
------_=_NEXTPART_000_01C0DFAD.3EF4A2D0--


Report this thread to moderator Post Follow-up to this message
Old Post
Richard
12-21-04 01:55 AM


Re: Email from JCL with attachment
>From: "Bill Gentry" Bill@nospam.com
>Date: 12/20/04 8:25 P.M. Eastern Standard Time

>
>OK, I've been spinning my wheels on this for a bit.
>
>I want to send an email from a JCL *with an attachment*.

Check out Lynol B Dick's XMIT/IP.  It's written in REXX and it's free!   You
can do a  Google search and find it several places.

We had it installed about a year ago and the users have gone e-mail attachme
nt
happy.   About 90% of our inventory reports are now going out as comma delmi
ted
files and some of my financials.  Since auditors want paper some go out as
both.

We still haven't explored many of it's capabilities, and they are many more
besides the use we put it to.

Report this thread to moderator Post Follow-up to this message
Old Post
YukonMama
12-21-04 08:55 AM


Re: Email from JCL with attachment

YukonMama wrote:
 
>
> 
>
>
> Check out Lynol B Dick's XMIT/IP.  It's written in REXX and it's free!   Y
ou
> can do a  Google search and find it several places.

Here's the URL:
http://www.lbdsoftware.com/
http://www.lbdsoftware.com/tcpip.html

Lots of other interesting stuff there too.

--
http://arnold.trembley.home.att.net/


Report this thread to moderator Post Follow-up to this message
Old Post
Arnold Trembley
12-21-04 01:55 PM


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 03:56 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.