MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Send an email in PDF format without using xmitip

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
emem
Beginner


Joined: 19 Mar 2012
Posts: 4
Topics: 1

PostPosted: Mon Mar 19, 2012 9:25 pm    Post subject: Send an email in PDF format without using xmitip Reply with quote

Hi,

Is there a way of sending emails using MIME and without using xmitip ?

I'm currently using this JCL but the PDF file seems to be corrupted.
Code:

****** ***************************** Top of Data ******************************
000001 HELO XXXXXX                                                             
000002 MAIL FROM:<xxxxxxxxxxxxxxxxxxxxxxxxxxxx>                               
000003 RCPT TO:<xxxxxxxxxxxxxxxxxxxxxx>                                       
000004 DATA                                                                   
000005 DATE: DD MMM YY HH:MM:SS +08:00:00                                     
000006 From: <xxxxxxxxxxxxxxxxxxxxxxx>                                         
000007 TO: xxxxxxxxxxxxx                                                       
000008 Subject:TEST PDF                                                       
000009 MIME-Version: 1.0                                                       
000010 Content-type: multipart/mixed; boundary="newline"                       
000011 SYSTEM GENERATED MESSAGE                                               
000012 --newline                                                               
000013                                                                         
000014 This is a test email.                                                   
000015 --newline                                                               
000016 Content-Type: application/PDF; name="MAIL1.PDF"                         
000017 Content-Transfer-Encoding: 7bit                                         
000018                                                                         
000019 This is a test input.                                                   
000020 --newline--                                                             
000021 QUIT                                                                   
****** **************************** Bottom of Data ****************************

Thanks in advance.
Back to top
View user's profile Send private message
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Tue Mar 20, 2012 9:11 am    Post subject: Reply with quote

Are you using SAS at all to create the PDF document and to email it?
Back to top
View user's profile Send private message
emem
Beginner


Joined: 19 Mar 2012
Posts: 4
Topics: 1

PostPosted: Tue Mar 20, 2012 9:56 am    Post subject: Reply with quote

Hi Superk,

On using MIME itself, is there a way to directly convert it ? Or I would need TXT2PDF conversion before it can be successfully sent as a PDF file ?

Thanks.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Wed Mar 21, 2012 10:21 am    Post subject: Reply with quote

emem,


Do you have SMTP up and running on your system?

Kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
emem
Beginner


Joined: 19 Mar 2012
Posts: 4
Topics: 1

PostPosted: Thu Mar 22, 2012 3:55 am    Post subject: Reply with quote

Hi Kolusu,

Yes SMTP is running on our system.

I'm able to send a PDF file using xmitip but I would like to know if there is other way to accomplish it without using a xmitip. Perhaps there is a specific command to convert a text file to pdf format and diretly email it ?

Thanks.
Back to top
View user's profile Send private message
taltyman
JCL Forum Moderator
JCL Forum Moderator


Joined: 02 Dec 2002
Posts: 310
Topics: 8
Location: Texas

PostPosted: Thu Mar 22, 2012 9:58 am    Post subject: Reply with quote

You may want to look at this code http://mmiller.myweb.uga.edu/pdf/txt2pdf
Works for me to convert text to pdf. Then email the resulting file
Back to top
View user's profile Send private message
emem
Beginner


Joined: 19 Mar 2012
Posts: 4
Topics: 1

PostPosted: Sun Mar 25, 2012 9:30 pm    Post subject: Reply with quote

Hi Taltyman,

I can see form the comments the JCL to run. Please can you provide me with the working JCL sample to convert text file to PDF format and send it as an email attachment ?

Thanks for the help Smile
Back to top
View user's profile Send private message
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Mon Mar 26, 2012 11:49 am    Post subject: Reply with quote

Why can you not create the JCL from the skeleton in the comments? The only bits missing are site dependent and your own requirements dependent. If somone had a working job based on the JCL in the comment then you would have to change the exact things that you would have to change using the skeleton.
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group