<?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: Convert file to PDS thru JCL in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Convert-file-to-PDS-thru-JCL/m-p/21307#M3877</link>
    <description>Posting "deleted"&lt;BR /&gt;
&lt;BR /&gt;
Message was edited by: Bill

Message was edited by: Bill</description>
    <pubDate>Wed, 28 May 2008 12:27:02 GMT</pubDate>
    <dc:creator>Bill</dc:creator>
    <dc:date>2008-05-28T12:27:02Z</dc:date>
    <item>
      <title>Convert file to PDS thru JCL</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Convert-file-to-PDS-thru-JCL/m-p/21306#M3876</link>
      <description>Hi,&lt;BR /&gt;
I'm very much a newbie to SAS.&lt;BR /&gt;
I have a sequential file of data on the IBM mainframe. I am using SAS within JCL to email the output to me. It arrives in text format.&lt;BR /&gt;
Is there anyway I can use a very, very basic sas routine in my JCL to convert the file to PDF, so I can email the file in pdf file format?&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Steve</description>
      <pubDate>Wed, 28 May 2008 01:39:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Convert-file-to-PDS-thru-JCL/m-p/21306#M3876</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-05-28T01:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: Convert file to PDS thru JCL</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Convert-file-to-PDS-thru-JCL/m-p/21307#M3877</link>
      <description>Posting "deleted"&lt;BR /&gt;
&lt;BR /&gt;
Message was edited by: Bill

Message was edited by: Bill</description>
      <pubDate>Wed, 28 May 2008 12:27:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Convert-file-to-PDS-thru-JCL/m-p/21307#M3877</guid>
      <dc:creator>Bill</dc:creator>
      <dc:date>2008-05-28T12:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: Convert file to PDS thru JCL</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Convert-file-to-PDS-thru-JCL/m-p/21308#M3878</link>
      <description>there will be Samples in the Knowledge Base &lt;A href="http://support.sas.com/resources" target="_blank"&gt;http://support.sas.com/resources&lt;/A&gt; which demonstrate sending email directly from SAS on an IBM mainframe. One usage note raised to clarify changed handling between SAS8 and SAS9 relates to email attachment content types ... see &lt;A href="http://support.sas.com/kb/14/361.html" target="_blank"&gt;http://support.sas.com/kb/14/361.html&lt;/A&gt;.&lt;BR /&gt;
 &lt;BR /&gt;
The ODS PDF destination should prepare your data (created through proc print?), and after closing that destination, a data step should make sending the PDF straightforward..... see the examples&lt;BR /&gt;
&lt;BR /&gt;
Good Luck&lt;BR /&gt;
&lt;BR /&gt;
peterC</description>
      <pubDate>Wed, 28 May 2008 13:43:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Convert-file-to-PDS-thru-JCL/m-p/21308#M3878</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-05-28T13:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: Convert file to PDF thru JCL</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Convert-file-to-PDS-thru-JCL/m-p/21309#M3879</link>
      <description>Hi Bill and Peter,&lt;BR /&gt;
&lt;BR /&gt;
I have scoured the SAS knowledge database, but have not had any luck.&lt;BR /&gt;
I have tried tampering with my email send  using the job below....&lt;BR /&gt;
&lt;BR /&gt;
//STEP4 EXEC SAS,REGION=4M                           &lt;BR /&gt;
//SYSIN DD *                                         &lt;BR /&gt;
 FILENAME MYMAIL EMAIL "GDD324@toms.com.au"          &lt;BR /&gt;
    TO=("GDD324@toms.com.au")                  &lt;BR /&gt;
    SUBJECT="Code Reviews etc"                       &lt;BR /&gt;
     ATTACH=("GDD324.COBOL.LISTING"                  &lt;BR /&gt;
            NAME="COBOL CODE in text format"         &lt;BR /&gt;
            EXT="TXT")                               &lt;BR /&gt;
     ATTACH=("cobollst/cobollist.pdf"                &lt;BR /&gt;
            NAME="COBOL CODE in PDF format"          &lt;BR /&gt;
            EXT="PDF")                               &lt;BR /&gt;
      RUN;                                           &lt;BR /&gt;
 DATA _NULL_;                                        &lt;BR /&gt;
   FILE MYMAIL;                                      &lt;BR /&gt;
 ods listing off;                                    &lt;BR /&gt;
 ods pdf file="cobollst/cobollist.pdf";              &lt;BR /&gt;
 proc print;                                         &lt;BR /&gt;
 run;                                                &lt;BR /&gt;
 ods close _all_;                                    &lt;BR /&gt;
---------------&lt;BR /&gt;
&lt;BR /&gt;
I get quite a few errors... some of these are:&lt;BR /&gt;
&lt;BR /&gt;
ERROR: Error in the FILENAME statement.                                &lt;BR /&gt;
ERROR 23-2: Invalid option name RUN.                                   &lt;BR /&gt;
ERROR 22-322: Syntax error, expecting one of the following: EXCLUDE, SE&lt;BR /&gt;
ERROR 76-322: Syntax error, statement will be ignored.                 &lt;BR /&gt;
14          ods pdf file="cobollst/cobollist.pdf";                     &lt;BR /&gt;
ERROR: Unable to open filename cobollst/cobollist.pdf. ODS PDF initiali&lt;BR /&gt;
ERROR: Unable to resolve current directory: UNIX Services MVS: No such file or directory exists. Reason code: 00000000.&lt;BR /&gt;
ERROR: Physical file does not exist, GDD324.MYMAIL.DATA.               &lt;BR /&gt;
NOTE: The SAS System stopped processing this step because of errors.   &lt;BR /&gt;
NOTE: The DATA statement used 0.03 CPU seconds.                        &lt;BR /&gt;
15          proc print;                                                &lt;BR /&gt;
ERROR: There is not a default input data set (_LAST_ is _NULL_).       &lt;BR /&gt;
16          run;                                                       &lt;BR /&gt;
NOTE: The SAS System stopped processing this step because of errors.   &lt;BR /&gt;
NOTE: The PROCEDURE PRINT used 0.00 CPU seconds.                       &lt;BR /&gt;
17          ods close _all_;                                           &lt;BR /&gt;
ERROR 180-322: Statement is not valid or it is used out of proper order&lt;BR /&gt;
&lt;BR /&gt;
--------------------------&lt;BR /&gt;
&lt;BR /&gt;
Still a little confused.... how does my COBOL program get threaded through to the cobollst/cobollist.pdf file? Or will ODS do this automagically?&lt;BR /&gt;
&lt;BR /&gt;
Thanks for your help!&lt;BR /&gt;
&lt;BR /&gt;
Steve</description>
      <pubDate>Mon, 02 Jun 2008 07:11:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Convert-file-to-PDS-thru-JCL/m-p/21309#M3879</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-06-02T07:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: Convert file to PDF thru JCL</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Convert-file-to-PDS-thru-JCL/m-p/21310#M3880</link>
      <description>there used to be a problem when there was more than one attachment. I don't know if the platform inconsistency over ATTACH syntax was fixed. So that might be your FILENAME problem.&lt;BR /&gt;
&lt;BR /&gt;
You have the wrong idea for the data step and those ODS statements.&lt;BR /&gt;
Place those ODS statements which define the Listing and PDF, before the step which fills these files. (and follow those creation steps with ODS _all_ CLOSE;)&lt;BR /&gt;
Your datastep that sends the email, needs no ODS but does need to write to the email file: something like: [pre] data _null_ ;  &lt;BR /&gt;
   file mymail ;&lt;BR /&gt;
   put 'message body goes here.' ;&lt;BR /&gt;
   put 'good luck.' ;&lt;BR /&gt;
run;[/pre]&lt;BR /&gt;
That should take you forward.&lt;BR /&gt;
Among the samples for MVS or ZOS did you see something like [pre]      TRANTAB= ASCII [/pre] I think it belongs on the file or filename statements, but may be more relevant to the ODS PDF or ATTACH= definitions. Wherever it goes, you probably need something to tell the mainframe not to do EBCDIC to ASCII translation of the at least the PDF attachment.&lt;BR /&gt;
&lt;BR /&gt;
You have quite a lot of issues still, to complete the whole picture.  I'm surprised that what you seek is not part of the Samples for the platform /ODS. I think it is certainly needed.&lt;BR /&gt;
&lt;BR /&gt;
Lots of Luck&lt;BR /&gt;
&lt;BR /&gt;
PeterC</description>
      <pubDate>Mon, 02 Jun 2008 09:39:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Convert-file-to-PDS-thru-JCL/m-p/21310#M3880</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-06-02T09:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: Convert file to PDS thru JCL</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Convert-file-to-PDS-thru-JCL/m-p/21311#M3881</link>
      <description>The TRANTAB=ASCII option is not required for PDF output, even when created on the mainframe. But you WOULD need it for (say) RTF. There may be something about how PDF documents are processed that renders EBCDIC meaningless.</description>
      <pubDate>Mon, 02 Jun 2008 14:03:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Convert-file-to-PDS-thru-JCL/m-p/21311#M3881</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-06-02T14:03:45Z</dc:date>
    </item>
  </channel>
</rss>

