IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

TXT2PDF and then SMTP email a PDF


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
kris_madras
Warnings : 1

New User


Joined: 04 Jul 2005
Posts: 31

PostPosted: Sun Oct 18, 2020 8:11 pm
Reply with quote

I am getting error while sending the PDF file to outlook via JCL.
Below steps I am doing.

(1) I have INFOPAC report downloaded to PS file of VB 200
(2) Converted VB file to FB 200 file.
(3) Used TXT2PDF routine to generate PDF file. This file is VB4100 by default.
(4) Ran the IEBGENER SMTP JCL to send attachment as PDF.

I am getting the attachment as .pdf in the email but Adobe is unable to open the file.
Code:

HELO xxxxx                                             
MAIL FROM: <xxxx@abc.com>                     
RCPT TO: <yyyy@abc.com>           
DATA                                                     
FROM:xxxx@abc,com                             
TO:  yyyy@abc.com                 
CC:  yyyy@abc.com                 
SUBJECT:  TEST RUN                                       
MIME-VERSION: 1.0                                       
CONTENT-TYPE: MULTIPART/MIXED;                           
CONTENT-DISPOSITION: ATTACHMENT; FILENAME="XYZ.PDF"
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Mon Oct 19, 2020 1:21 am
Reply with quote

Why no code tags?
If you simply manually ftp the pdf dataset can your pdf reader read it?
Back to top
View user's profile Send private message
kris_madras
Warnings : 1

New User


Joined: 04 Jul 2005
Posts: 31

PostPosted: Mon Oct 19, 2020 8:48 am
Reply with quote

Hi,
Yes. If I do file binary transfer (option 6 in ISPf) and name the file .PDF, it is opening correctly with adobe.

Please suggest me how to use code tags in the xmitip.
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Mon Oct 19, 2020 7:56 pm
Reply with quote

I was talking about using code tags in your post - I have added them myself but I will not do it again.
Back to top
View user's profile Send private message
sergeyken

Senior Member


Joined: 29 Apr 2008
Posts: 2011
Location: USA

PostPosted: Mon Oct 19, 2020 11:14 pm
Reply with quote

kris_madras wrote:
Hi,
Yes. If I do file binary transfer (option 6 in ISPf) and name the file .PDF, it is opening correctly with adobe.

Please suggest me how to use code tags in the xmitip.


An old joke:

Water is boiling at 100 degrees Celsius; how come the right angle is only 90 degrees?... 2014.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts REXX to send an email in Mainframe wi... CLIST & REXX 3
No new posts REXX to send an email in Mainframe CLIST & REXX 4
No new posts Problem while sending special charact... JCL & VSAM 4
No new posts using TXT2PDF to colour specific lines All Other Mainframe Topics 3
No new posts Send email without SMTP All Other Mainframe Topics 5
Search our Forums:

Back to Top