<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: sending pdf file from z/os? in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/sending-pdf-file-from-z-os/m-p/76618#M8660</link>
    <description>Hi&lt;BR /&gt;
when I Ftp this fileI(VQ959.VQ3.PDFTESTX) as pdf with binary format , I am able to view from adobe reader, but when I email  the file(JCL and SAS coding attached) to  my Lotus notes email application and open it , then it pop up the following message.&lt;BR /&gt;
&lt;BR /&gt;
Adobe Reader couldn't open "VQ3.PDFTEST.PDF" because it either not a supported file type or because the file has been damaged(for example , it was sent as an email attachment and wasn't correctly decoded).&lt;BR /&gt;
&lt;BR /&gt;
Since I was not able to open from lotus notes, I saved in my c drive, and then I try to open it , and  I got the same error message.&lt;BR /&gt;
&lt;BR /&gt;
Please note that my&lt;BR /&gt;
Mainfram SAS is version 8.2&lt;BR /&gt;
&lt;BR /&gt;
 I need this help big time,&lt;BR /&gt;
&lt;BR /&gt;
My JCL for creating PDF file is follows&lt;BR /&gt;
&lt;BR /&gt;
//*--------------------------------------------------------------------&lt;BR /&gt;
//SCRATCH2 EXEC PGM=RESTART,&lt;BR /&gt;
//         PARM='VQ959.VQ3.PDFTESTX'&lt;BR /&gt;
//*--------------------------------------------------------------------&lt;BR /&gt;
//*********************************************************************&lt;BR /&gt;
//STEP1    EXEC SAS&lt;BR /&gt;
//PDFTEST  DD DSN=VQ959.VQ3.PDFTESTX,&lt;BR /&gt;
//            DISP=(NEW,CATLG,DELETE),UNIT=PUBLIC,&lt;BR /&gt;
//            DCB=(RECFM=VB,LRECL=259,BLKSIZE=27998),&lt;BR /&gt;
//            SPACE=(TRK,(5,5),RLSE)&lt;BR /&gt;
//SYSIN    DD DATA,DLM=##&lt;BR /&gt;
***************************************&lt;BR /&gt;
OPTIONS ERRORABEND MISSING=' ' ;&lt;BR /&gt;
&lt;BR /&gt;
 DATA MASTER;&lt;BR /&gt;
 INPUT @1 REC $CHAR30.;&lt;BR /&gt;
 CARDS;&lt;BR /&gt;
 aaaaaaaaaaaaaaaaaa&lt;BR /&gt;
 bbbbbbbbbbbbbbbbbb&lt;BR /&gt;
 cccccccccccccccccc&lt;BR /&gt;
 dddddddddddddddddd&lt;BR /&gt;
 eeeeeeeeeeeeeeeeee&lt;BR /&gt;
 ;&lt;BR /&gt;
RUN;&lt;BR /&gt;
&lt;BR /&gt;
OPTIONS ORIENTATION=LANDSCAPE;&lt;BR /&gt;
OPTIONS PAPERSIZE=LEGAL;&lt;BR /&gt;
OPTIONS LS=138;&lt;BR /&gt;
OPTIONS NODATE NONUMBER ;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
ODS LISTING CLOSE;&lt;BR /&gt;
ODS PDF FILE=PDFTEST;&lt;BR /&gt;
PROC PRINT DATA=MASTER;&lt;BR /&gt;
FORMAT REC $CHAR30.;&lt;BR /&gt;
RUN;&lt;BR /&gt;
ODS PDF CLOSE;&lt;BR /&gt;
ODS LISTING;&lt;BR /&gt;
&lt;BR /&gt;
ENDSAS;&lt;BR /&gt;
##&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
My jcl for email is as follows&lt;BR /&gt;
&lt;BR /&gt;
//********************************************&lt;BR /&gt;
//RST EXEC SAS,&lt;BR /&gt;
//   OPTIONS='EMAILHOST=11.0.72.99',OUT=ICOUT&lt;BR /&gt;
//DATA1 DD DSN=VQ959.VQ3.PDFTESTX,&lt;BR /&gt;
//           DISP=SHR&lt;BR /&gt;
//SASLIST DD SYSOUT=A&lt;BR /&gt;
//SASLOG  DD SYSOUT=A&lt;BR /&gt;
//SYSIN   DD *&lt;BR /&gt;
   FILENAME TEMP EMAIL 'ANTON@ROGERS.COM'&lt;BR /&gt;
   SUBJECT='TESTING MAIL INTERFACE'&lt;BR /&gt;
      TYPE='TEXT/PLAIN'&lt;BR /&gt;
   ATTACH=("VQ959.VQ3.PDFTESTX"&lt;BR /&gt;
            EXTENSION='PDF');&lt;BR /&gt;
   DATA _NULL_;&lt;BR /&gt;
   FILE TEMP;&lt;BR /&gt;
   PUT 'THIS IS TESTING';&lt;BR /&gt;
   RUN;</description>
    <pubDate>Sat, 07 Mar 2009 21:35:23 GMT</pubDate>
    <dc:creator>Inp</dc:creator>
    <dc:date>2009-03-07T21:35:23Z</dc:date>
    <item>
      <title>sending pdf file from z/os?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/sending-pdf-file-from-z-os/m-p/76615#M8657</link>
      <description>Hi Dear,&lt;BR /&gt;
        I have created a pdf file from the mainfram, then I am trying to sent as attachment as pdf file, but I couldn't. Can any one please help me out. I am able to send as text file but not able to send a pdf file. Here is my JCL.For security reason, I change the mailserver ip address and email name. Thank you for help in advance.&lt;BR /&gt;
&lt;BR /&gt;
Thanks&lt;BR /&gt;
&lt;BR /&gt;
Inpu&lt;BR /&gt;
//RST EXEC SAS,&lt;BR /&gt;
//   OPTIONS='EMAILHOST=qq.9.22.10',OUT=ICOUT&lt;BR /&gt;
//DATA1 DD DSN=SB900.GIPRIC.VQ959.PDFTESTX,&lt;BR /&gt;
//           DISP=SHR&lt;BR /&gt;
//SASLIST DD SYSOUT=A&lt;BR /&gt;
//SASLOG  DD SYSOUT=A&lt;BR /&gt;
//SYSIN   DD *&lt;BR /&gt;
   FILENAME TEMP EMAIL 'ANTON.roger@vista.COM'&lt;BR /&gt;
   SUBJECT='TESTING MAIL INTERFACE'&lt;BR /&gt;
   TYPE='TEXT/PLAIN'&lt;BR /&gt;
   ATTACH=("VQRRR.DUPSAS.VQ959.PDFTESTX" NAME='TEST REPORT'&lt;BR /&gt;
            EXTENSION='PDF');&lt;BR /&gt;
   DATA _NULL_;&lt;BR /&gt;
   FILE TEMP;&lt;BR /&gt;
   PUT 'THIS IS TESTING';&lt;BR /&gt;
   RUN;</description>
      <pubDate>Sat, 07 Mar 2009 06:32:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/sending-pdf-file-from-z-os/m-p/76615#M8657</guid>
      <dc:creator>Inp</dc:creator>
      <dc:date>2009-03-07T06:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: sending pdf file from z/os?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/sending-pdf-file-from-z-os/m-p/76616#M8658</link>
      <description>Hi:&lt;BR /&gt;
  You might check out the documentation or companion for your operating system. This document has some e-mail examples:&lt;BR /&gt;
&lt;A href="http://support.sas.com/rnd/base/ods/templateFAQ/MVSODS3.pdf" target="_blank"&gt;http://support.sas.com/rnd/base/ods/templateFAQ/MVSODS3.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
  Perhaps Tech Support can be of more help, if this doesn't resolve your problems.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Sat, 07 Mar 2009 15:12:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/sending-pdf-file-from-z-os/m-p/76616#M8658</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2009-03-07T15:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: sending pdf file from z/os?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/sending-pdf-file-from-z-os/m-p/76617#M8659</link>
      <description>It is unclear from your post - exactly what problem are you experiencing?  Also, how are you generating the PDF document on the z/OS mainframe system?  Is the problem / error with opening the attachment when received by your EMAIL client, or possibly the EMAIL is not being received at all?  And what SAS version are you running?  &lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Sat, 07 Mar 2009 15:16:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/sending-pdf-file-from-z-os/m-p/76617#M8659</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-03-07T15:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: sending pdf file from z/os?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/sending-pdf-file-from-z-os/m-p/76618#M8660</link>
      <description>Hi&lt;BR /&gt;
when I Ftp this fileI(VQ959.VQ3.PDFTESTX) as pdf with binary format , I am able to view from adobe reader, but when I email  the file(JCL and SAS coding attached) to  my Lotus notes email application and open it , then it pop up the following message.&lt;BR /&gt;
&lt;BR /&gt;
Adobe Reader couldn't open "VQ3.PDFTEST.PDF" because it either not a supported file type or because the file has been damaged(for example , it was sent as an email attachment and wasn't correctly decoded).&lt;BR /&gt;
&lt;BR /&gt;
Since I was not able to open from lotus notes, I saved in my c drive, and then I try to open it , and  I got the same error message.&lt;BR /&gt;
&lt;BR /&gt;
Please note that my&lt;BR /&gt;
Mainfram SAS is version 8.2&lt;BR /&gt;
&lt;BR /&gt;
 I need this help big time,&lt;BR /&gt;
&lt;BR /&gt;
My JCL for creating PDF file is follows&lt;BR /&gt;
&lt;BR /&gt;
//*--------------------------------------------------------------------&lt;BR /&gt;
//SCRATCH2 EXEC PGM=RESTART,&lt;BR /&gt;
//         PARM='VQ959.VQ3.PDFTESTX'&lt;BR /&gt;
//*--------------------------------------------------------------------&lt;BR /&gt;
//*********************************************************************&lt;BR /&gt;
//STEP1    EXEC SAS&lt;BR /&gt;
//PDFTEST  DD DSN=VQ959.VQ3.PDFTESTX,&lt;BR /&gt;
//            DISP=(NEW,CATLG,DELETE),UNIT=PUBLIC,&lt;BR /&gt;
//            DCB=(RECFM=VB,LRECL=259,BLKSIZE=27998),&lt;BR /&gt;
//            SPACE=(TRK,(5,5),RLSE)&lt;BR /&gt;
//SYSIN    DD DATA,DLM=##&lt;BR /&gt;
***************************************&lt;BR /&gt;
OPTIONS ERRORABEND MISSING=' ' ;&lt;BR /&gt;
&lt;BR /&gt;
 DATA MASTER;&lt;BR /&gt;
 INPUT @1 REC $CHAR30.;&lt;BR /&gt;
 CARDS;&lt;BR /&gt;
 aaaaaaaaaaaaaaaaaa&lt;BR /&gt;
 bbbbbbbbbbbbbbbbbb&lt;BR /&gt;
 cccccccccccccccccc&lt;BR /&gt;
 dddddddddddddddddd&lt;BR /&gt;
 eeeeeeeeeeeeeeeeee&lt;BR /&gt;
 ;&lt;BR /&gt;
RUN;&lt;BR /&gt;
&lt;BR /&gt;
OPTIONS ORIENTATION=LANDSCAPE;&lt;BR /&gt;
OPTIONS PAPERSIZE=LEGAL;&lt;BR /&gt;
OPTIONS LS=138;&lt;BR /&gt;
OPTIONS NODATE NONUMBER ;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
ODS LISTING CLOSE;&lt;BR /&gt;
ODS PDF FILE=PDFTEST;&lt;BR /&gt;
PROC PRINT DATA=MASTER;&lt;BR /&gt;
FORMAT REC $CHAR30.;&lt;BR /&gt;
RUN;&lt;BR /&gt;
ODS PDF CLOSE;&lt;BR /&gt;
ODS LISTING;&lt;BR /&gt;
&lt;BR /&gt;
ENDSAS;&lt;BR /&gt;
##&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
My jcl for email is as follows&lt;BR /&gt;
&lt;BR /&gt;
//********************************************&lt;BR /&gt;
//RST EXEC SAS,&lt;BR /&gt;
//   OPTIONS='EMAILHOST=11.0.72.99',OUT=ICOUT&lt;BR /&gt;
//DATA1 DD DSN=VQ959.VQ3.PDFTESTX,&lt;BR /&gt;
//           DISP=SHR&lt;BR /&gt;
//SASLIST DD SYSOUT=A&lt;BR /&gt;
//SASLOG  DD SYSOUT=A&lt;BR /&gt;
//SYSIN   DD *&lt;BR /&gt;
   FILENAME TEMP EMAIL 'ANTON@ROGERS.COM'&lt;BR /&gt;
   SUBJECT='TESTING MAIL INTERFACE'&lt;BR /&gt;
      TYPE='TEXT/PLAIN'&lt;BR /&gt;
   ATTACH=("VQ959.VQ3.PDFTESTX"&lt;BR /&gt;
            EXTENSION='PDF');&lt;BR /&gt;
   DATA _NULL_;&lt;BR /&gt;
   FILE TEMP;&lt;BR /&gt;
   PUT 'THIS IS TESTING';&lt;BR /&gt;
   RUN;</description>
      <pubDate>Sat, 07 Mar 2009 21:35:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/sending-pdf-file-from-z-os/m-p/76618#M8660</guid>
      <dc:creator>Inp</dc:creator>
      <dc:date>2009-03-07T21:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: sending pdf file from z/os?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/sending-pdf-file-from-z-os/m-p/76619#M8661</link>
      <description>I ran your code in SAS 9.1.3 SP4 and it worked -- I was able to open the EMAIL attachment with no problem.  So, you may want to consider SAS HOTFIX maint to address known PDF related problems on z/OS with SAS 8.2, or look at upgrading to a more current (and supported) SAS version.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Sat, 07 Mar 2009 22:43:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/sending-pdf-file-from-z-os/m-p/76619#M8661</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-03-07T22:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: sending pdf file from z/os?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/sending-pdf-file-from-z-os/m-p/76620#M8662</link>
      <description>PDF files are not text files, but you have coded ‘TYPE=TEXT/PLAIN’. Try ‘TYPE=APPLICATION/PDF’.</description>
      <pubDate>Mon, 09 Mar 2009 12:10:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/sending-pdf-file-from-z-os/m-p/76620#M8662</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-03-09T12:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: sending pdf file from z/os?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/sending-pdf-file-from-z-os/m-p/76621#M8663</link>
      <description>Hi Bobmorley,&lt;BR /&gt;
                 I tried by putting TYPE='APPLICATION/PDF'  but it doesn't work,&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Thanks&lt;BR /&gt;
&lt;BR /&gt;
Inp</description>
      <pubDate>Wed, 11 Mar 2009 02:38:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/sending-pdf-file-from-z-os/m-p/76621#M8663</guid>
      <dc:creator>Inp</dc:creator>
      <dc:date>2009-03-11T02:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: sending pdf file from z/os?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/sending-pdf-file-from-z-os/m-p/76622#M8664</link>
      <description>I’ve just checked my working code, and you want the original TYPE=’TEXT/PLAIN’ on the FILENAME statement itself and the suggested TYPE=APPLICATION/PDF’ goes inside the ATTACH.&lt;BR /&gt;
&lt;BR /&gt;
Thinking about this, you want the body of the email as text but the attachment has different characteristics.</description>
      <pubDate>Wed, 11 Mar 2009 10:30:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/sending-pdf-file-from-z-os/m-p/76622#M8664</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-03-11T10:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: sending pdf file from z/os?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/sending-pdf-file-from-z-os/m-p/76623#M8665</link>
      <description>Hi Bobmorley2,&lt;BR /&gt;
  Thank you so much. When I put type=application /pdf  inside the attachement , it didn't work, but when I put CT=APPLICATION/PDF it work fine. Finally you get me thorough. Thanks so much Bobmorley2 and other people who try to help me for this issue.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Thanks again guys.&lt;BR /&gt;
&lt;BR /&gt;
regards&lt;BR /&gt;
&lt;BR /&gt;
Inp</description>
      <pubDate>Wed, 11 Mar 2009 20:59:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/sending-pdf-file-from-z-os/m-p/76623#M8665</guid>
      <dc:creator>Inp</dc:creator>
      <dc:date>2009-03-11T20:59:39Z</dc:date>
    </item>
  </channel>
</rss>

