<?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: Print SAS Code to Output File in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Print-SAS-Code-to-Output-File/m-p/238551#M268312</link>
    <description>&lt;P&gt;You can use PROC DOCUMENT's IMPORT TEXTFILE statement to import a text file into an ODS document. Then you can replay the document to any ODS destination, including RTF or PDF. This example imports the SAS program file "ppurl.sas" into the WORK.TEMP document and then replays WORK.TEMP to the HTML file test.html:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods html file="test.html";
proc document name=temp(write);
   import textfile="ppurl.sas" to ^;
   replay;
run;
ods html close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 09 Dec 2015 18:17:44 GMT</pubDate>
    <dc:creator>Tim_SAS</dc:creator>
    <dc:date>2015-12-09T18:17:44Z</dc:date>
    <item>
      <title>Print SAS Code to Output File</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Print-SAS-Code-to-Output-File/m-p/238525#M268311</link>
      <description>&lt;P&gt;Is there any coding that can be written&amp;nbsp;to print your SAS code to an RTF or PDF File?&lt;/P&gt;
&lt;P&gt;I know you can do this with the log file, but when I submit code I need to have a file created that contains that code as it appeared in the editor (does not include the annotation that appears in the log).&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2015 16:07:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Print-SAS-Code-to-Output-File/m-p/238525#M268311</guid>
      <dc:creator>fastb</dc:creator>
      <dc:date>2015-12-09T16:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: Print SAS Code to Output File</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Print-SAS-Code-to-Output-File/m-p/238551#M268312</link>
      <description>&lt;P&gt;You can use PROC DOCUMENT's IMPORT TEXTFILE statement to import a text file into an ODS document. Then you can replay the document to any ODS destination, including RTF or PDF. This example imports the SAS program file "ppurl.sas" into the WORK.TEMP document and then replays WORK.TEMP to the HTML file test.html:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods html file="test.html";
proc document name=temp(write);
   import textfile="ppurl.sas" to ^;
   replay;
run;
ods html close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 09 Dec 2015 18:17:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Print-SAS-Code-to-Output-File/m-p/238551#M268312</guid>
      <dc:creator>Tim_SAS</dc:creator>
      <dc:date>2015-12-09T18:17:44Z</dc:date>
    </item>
    <item>
      <title>Re: Print SAS Code to Output File</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Print-SAS-Code-to-Output-File/m-p/238567#M268313</link>
      <description>&lt;P&gt;Thank you Tim; that works perfect!&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2015 19:53:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Print-SAS-Code-to-Output-File/m-p/238567#M268313</guid>
      <dc:creator>fastb</dc:creator>
      <dc:date>2015-12-09T19:53:34Z</dc:date>
    </item>
  </channel>
</rss>

