<?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: Proc Printto - Multiple Print= statements in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-Printto-Multiple-Print-statements/m-p/593796#M170487</link>
    <description>&lt;P&gt;You will probably need to use the ALTPRINT option. This needs to be specified when you call/launch SAS.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;sas -altprint "output_only.lst"  -altlog "log_only.log"  myprogram.sas&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 03 Oct 2019 16:15:52 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2019-10-03T16:15:52Z</dc:date>
    <item>
      <title>Proc Printto - Multiple Print= statements</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Printto-Multiple-Print-statements/m-p/593562#M170361</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm fairly new to proc printto and was wondering if I could use the print= statement multiple times in order to have files made at multiple places.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's what I want:&lt;/P&gt;&lt;P&gt;-&amp;nbsp;I'd like to have 1 file that includes my log and my proc outputs in one single stream and have been doing that by setting the log= statement and print= statement to the same file location.&lt;/P&gt;&lt;P&gt;- I'd also like a separate file made that only includes my proc outputs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From playing around with SAS, it seems that proc printto will only utilize the last print= statement. I was wondering if there were an option I could use where I could get both at the same time or if there was a different procedure I could use. I could just use an ods rtf/excel/pdf each time, but I'm&amp;nbsp;wondering how to&amp;nbsp;keep this as a SAS .lst file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2019 22:14:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Printto-Multiple-Print-statements/m-p/593562#M170361</guid>
      <dc:creator>solfay243</dc:creator>
      <dc:date>2019-10-02T22:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Printto - Multiple Print= statements</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Printto-Multiple-Print-statements/m-p/593581#M170370</link>
      <description>&lt;P&gt;Like this?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods listing file="%sysfunc(pathname(WORK))\outputs.lst";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2019 03:17:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Printto-Multiple-Print-statements/m-p/593581#M170370</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2019-10-03T03:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Printto - Multiple Print= statements</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Printto-Multiple-Print-statements/m-p/593785#M170483</link>
      <description>While this is a great suggestion, it seems that using ods listing file=; will negate the proc printto print=; statement and I end up with just two files with separate log and output results rather than the file results I desire.</description>
      <pubDate>Thu, 03 Oct 2019 15:46:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Printto-Multiple-Print-statements/m-p/593785#M170483</guid>
      <dc:creator>solfay243</dc:creator>
      <dc:date>2019-10-03T15:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Printto - Multiple Print= statements</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Printto-Multiple-Print-statements/m-p/593796#M170487</link>
      <description>&lt;P&gt;You will probably need to use the ALTPRINT option. This needs to be specified when you call/launch SAS.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;sas -altprint "output_only.lst"  -altlog "log_only.log"  myprogram.sas&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 03 Oct 2019 16:15:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Printto-Multiple-Print-statements/m-p/593796#M170487</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-10-03T16:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Printto - Multiple Print= statements</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Printto-Multiple-Print-statements/m-p/593950#M170568</link>
      <description>&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;nbsp;will negate the proc printto print=; statement&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Oh no. Then the only way that I can think of in order to achieve your described goal is that you post-process the file with log+output to remove the log lines and create a second, output-only, file.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2019 21:39:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Printto-Multiple-Print-statements/m-p/593950#M170568</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2019-10-03T21:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Printto - Multiple Print= statements</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Printto-Multiple-Print-statements/m-p/593954#M170571</link>
      <description>&lt;P&gt;For those interested, it would seem that short of using 3rd party software I have to make due with using ods rtf/pdf/excel to create an output only file in this case. I appreciate the replies here and we may&amp;nbsp;have possibly found a new feature that SAS could work on implementing.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2019 21:47:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Printto-Multiple-Print-statements/m-p/593954#M170571</guid>
      <dc:creator>solfay243</dc:creator>
      <dc:date>2019-10-03T21:47:13Z</dc:date>
    </item>
  </channel>
</rss>

