<?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 print= vs file print statements in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-printto-print-vs-file-print-statements/m-p/460823#M117160</link>
    <description>&lt;P&gt;Main difference is duration.&lt;/P&gt;
&lt;P&gt;File Print output is for a single data step.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc Printto output continues sending all of the specified type(s) of output to the destination(s) until canceled.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 08 May 2018 19:51:00 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2018-05-08T19:51:00Z</dc:date>
    <item>
      <title>proc printto print= vs file print statements</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-printto-print-vs-file-print-statements/m-p/460805#M117155</link>
      <description>&lt;P&gt;&amp;nbsp;Some places I've seen proc printto print= option being used which sends the output to the necessary location and sometimes I've seen FILE PRINT statement being utilized. Are there any rules for when either of these are to be used?&lt;/P&gt;</description>
      <pubDate>Tue, 08 May 2018 19:07:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-printto-print-vs-file-print-statements/m-p/460805#M117155</guid>
      <dc:creator>astha8882000</dc:creator>
      <dc:date>2018-05-08T19:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: proc printto print= vs file print statements</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-printto-print-vs-file-print-statements/m-p/460823#M117160</link>
      <description>&lt;P&gt;Main difference is duration.&lt;/P&gt;
&lt;P&gt;File Print output is for a single data step.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc Printto output continues sending all of the specified type(s) of output to the destination(s) until canceled.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 May 2018 19:51:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-printto-print-vs-file-print-statements/m-p/460823#M117160</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-05-08T19:51:00Z</dc:date>
    </item>
    <item>
      <title>Re: proc printto print= vs file print statements</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-printto-print-vs-file-print-statements/m-p/460830#M117162</link>
      <description>&lt;P&gt;PROC PRINTTO controls the output for subsequent procedures, such as reports from PROC FREQ and PROC MEANS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FILE controls messages written by subsequent PUT statements within the same DATA step.&amp;nbsp; It has no impact on reports from SAS procedures.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now that you've started me thinking, I will have to test what happens when both PROC PRINTTO and a FILE PRINT statement are in effect.&amp;nbsp; Where will the PUT messages go?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;************ TEST RESULTS:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When both PROC PRINTTO and FILE PRINT are used, the PUT statements in the DATA step write to the PROC PRINTTO destination.&lt;/P&gt;</description>
      <pubDate>Tue, 08 May 2018 20:15:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-printto-print-vs-file-print-statements/m-p/460830#M117162</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-05-08T20:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: proc printto print= vs file print statements</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-printto-print-vs-file-print-statements/m-p/460834#M117163</link>
      <description>&lt;P&gt;Thank you, that was helpful!&lt;/P&gt;</description>
      <pubDate>Tue, 08 May 2018 20:18:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-printto-print-vs-file-print-statements/m-p/460834#M117163</guid>
      <dc:creator>astha8882000</dc:creator>
      <dc:date>2018-05-08T20:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: proc printto print= vs file print statements</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-printto-print-vs-file-print-statements/m-p/460837#M117165</link>
      <description>&lt;P&gt;So in the last scenario that you mentioned, proc printto trumps file print. Great point!&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you, that was helpful!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 May 2018 20:19:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-printto-print-vs-file-print-statements/m-p/460837#M117165</guid>
      <dc:creator>astha8882000</dc:creator>
      <dc:date>2018-05-08T20:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: proc printto print= vs file print statements</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-printto-print-vs-file-print-statements/m-p/460844#M117166</link>
      <description>&lt;P&gt;In that last scenario, PROC PRINTTO and FILE PRINT are actually working together.&amp;nbsp; The FILE statement can still override by specifying a different destination such as:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;file 'path-to-a-hardcoded-file-name';&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's only the use of FILE PRINT that uses the PRINTTO destination.&lt;/P&gt;</description>
      <pubDate>Tue, 08 May 2018 20:27:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-printto-print-vs-file-print-statements/m-p/460844#M117166</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-05-08T20:27:54Z</dc:date>
    </item>
  </channel>
</rss>

