Attaching Mainframe dataset to email

5 pts.
Tags:
JCL
Mainframe
SMTP
SMTP Email Address
How smtp e-mail from jcl with print image files attached
ASKED: August 3, 2010  4:55 PM
UPDATED: August 4, 2010  4:38 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.

I have never done an attachment using SMTP. I looked thru the SMTP commands and I don’t see anything for an attachment.

But XMIT allows you to create a PDF from a dataset and send the PDF.
I know that this does not answer the exact question you asked, but it is the best I can come up with. I use this quite frequently.

Here is an XMIT sample:
<pre>
//STEP1 EXEC XMITBTCH
//SYSTSIN DD *
%XMITIP –
(somename@somplace)-
MSGDD READ1 –
SUBJECT ‘ ‘ –
FROM userid@location –
FILE (‘my.data.set”) –
FILENAME (DSNDB04.PDF) –
FILEDESC (DSNDB04 TABLES) –
FORMAT PDF/LAND/12/LEG/6 –
MARGIN .5/.5/.5/.5
//READ1 DD *
**********************************
* HELLO,
* HERE IS THE LIST
**********************************
/*
</pre>

Here is the expanded PROC:
<pre>
//STEP1 EXEC XMITBTCH
XXMAIL EXEC PGM=IKJEFT1B
XXSTEPLIB DD DISP=SHR,DSN=XMT1.XMITLOAD
XXSYSIN DD DUMMY
XXSYSEXEC DD DSN=SPF1.USER.ISPCLIB,DISP=SHR
XXSYSTCPD DD DSN=TCPIP.V2RAUSER.SA01.TCPPARMS(TCPDATA),DISP=SHR
XXSYSTSPRT DD SYSOUT=*
</pre>

Here is some little documentation on the XMIT parms for the creation of the PDF:
<pre>
//** WHAT DO THE VARIOUS ENTRIES IN THIS PARM CARD MEAN?
//** FORMAT PDF/LAND/6/LEG/12-
//**
//** FORMAT PDF/LAYOUT/FONT-SIZE/PAPER-SIZE/LINESPERINCH
//** SO THAT TRANSLATES TO: ADOBE PDF FORMAT,
//** LANDSCAPE MODE,
//** 6/72 OF AN INCH FONT-SIZE,
//** LEGAL PAPER ,
//** 12 LINES PER INCH.
</pre>

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following