<?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 How to redirect put statements to the result instead of the log? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-redirect-put-statements-to-the-result-instead-of-the-log/m-p/513618#M138398</link>
    <description>&lt;P&gt;Is there a way to redirect put statements within the data step to the result rather than the log?&lt;/P&gt;</description>
    <pubDate>Thu, 15 Nov 2018 21:09:46 GMT</pubDate>
    <dc:creator>tomcmacdonald</dc:creator>
    <dc:date>2018-11-15T21:09:46Z</dc:date>
    <item>
      <title>How to redirect put statements to the result instead of the log?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-redirect-put-statements-to-the-result-instead-of-the-log/m-p/513618#M138398</link>
      <description>&lt;P&gt;Is there a way to redirect put statements within the data step to the result rather than the log?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Nov 2018 21:09:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-redirect-put-statements-to-the-result-instead-of-the-log/m-p/513618#M138398</guid>
      <dc:creator>tomcmacdonald</dc:creator>
      <dc:date>2018-11-15T21:09:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to redirect put statements to the result instead of the log?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-redirect-put-statements-to-the-result-instead-of-the-log/m-p/513625#M138402</link>
      <description>&lt;P&gt;Show us what your trying to do. What are your writing to log matters.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Nov 2018 21:14:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-redirect-put-statements-to-the-result-instead-of-the-log/m-p/513625#M138402</guid>
      <dc:creator>SuryaKiran</dc:creator>
      <dc:date>2018-11-15T21:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to redirect put statements to the result instead of the log?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-redirect-put-statements-to-the-result-instead-of-the-log/m-p/513630#M138403</link>
      <description>&lt;P&gt;Using PUT statement uses as default the FILE LOG output;&lt;/P&gt;
&lt;P&gt;You can define any other output including FILE PRINT to have the output on result window.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;

   file print; put 'Output to result window';

   file log;   put 'Return to default';

run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 15 Nov 2018 21:17:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-redirect-put-statements-to-the-result-instead-of-the-log/m-p/513630#M138403</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2018-11-15T21:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to redirect put statements to the result instead of the log?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-redirect-put-statements-to-the-result-instead-of-the-log/m-p/513634#M138405</link>
      <description>&lt;P&gt;I'm using SAS 9.4 under AIX 7 with bash.&amp;nbsp; I'm trying to redirect the output from put statements into a file.&amp;nbsp; I want the following command to output "hello, foobar" to stdout.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;sas -stdio &amp;lt;(echo 'data _null_; put "hello, foobar"; run;') 2&amp;gt;/dev/null&lt;/PRE&gt;&lt;P&gt;It seems the only way to accomplish this is to explicitly use the file statement like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;sas -stdio &amp;lt;(echo 'data _null_; file stdout; put "hello, foobar"; run;') 2&amp;gt;/dev/null&lt;/PRE&gt;</description>
      <pubDate>Thu, 15 Nov 2018 21:19:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-redirect-put-statements-to-the-result-instead-of-the-log/m-p/513634#M138405</guid>
      <dc:creator>tomcmacdonald</dc:creator>
      <dc:date>2018-11-15T21:19:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to redirect put statements to the result instead of the log?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-redirect-put-statements-to-the-result-instead-of-the-log/m-p/514719#M138813</link>
      <description>&lt;P&gt;Inside your script&lt;A title="best SAS training institute in btm marathahalli bangalore" href="https://www.upshottechnologies.in/advance-sas-training-in-bangalore/" target="_self"&gt; file&lt;/A&gt;, put all of the&lt;A title="best SAS training institute in btm marathahalli bangalore" href="https://www.upshottechnologies.in/advance-sas-training-in-bangalore/" target="_self"&gt; commands&lt;/A&gt; within parentheses, like this:&lt;/P&gt;&lt;PRE class="lang-sh prettyprint prettyprinted"&gt;&lt;CODE&gt;&lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;echo start
ls &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;-&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;l
echo end&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;)&lt;/SPAN&gt; &lt;SPAN class="pun"&gt;|&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; tee foo&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;log&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Nov 2018 12:05:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-redirect-put-statements-to-the-result-instead-of-the-log/m-p/514719#M138813</guid>
      <dc:creator>mounikaupshot</dc:creator>
      <dc:date>2018-11-20T12:05:30Z</dc:date>
    </item>
  </channel>
</rss>

