<?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: Redirecting log to stream in SAS UNIX batch in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Redirecting-log-to-stream-in-SAS-UNIX-batch/m-p/480602#M124223</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/142145"&gt;@tomcmacdonald&lt;/a&gt;, I found this short bit in the &lt;A href="https://support.sas.com/documentation/cdl//en/hostunx/67929/HTML/default/viewer.htm#n1k384nd9e0s6rn1qegvdzbyt7ut.htm" target="_self"&gt;UNIX Companion&lt;/A&gt; about routing output to a terminal.&amp;nbsp; I don't have an AIX box handy, but this works on Linux:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename term terminal '/dev/stdout';
proc printto log=term; run;
proc options; run;
endsas;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Saving that as "test.sas" I could run it from an xterm and get the output back:&amp;nbsp; sas test.sas&lt;/P&gt;
&lt;P&gt;Also could pipe it to the more command just fine:&amp;nbsp; sas test.sas | more&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;HTH&lt;/P&gt;
&lt;P&gt;Dave&lt;/P&gt;</description>
    <pubDate>Mon, 23 Jul 2018 19:19:46 GMT</pubDate>
    <dc:creator>DaveHorne</dc:creator>
    <dc:date>2018-07-23T19:19:46Z</dc:date>
    <item>
      <title>Redirecting log to stream in SAS UNIX batch</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Redirecting-log-to-stream-in-SAS-UNIX-batch/m-p/480453#M124180</link>
      <description>&lt;P&gt;Is it possible to redirect a log to a stream in SAS batch.&amp;nbsp; The following command does not seem to work for SAS 9.4 running on AIX 7&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;sas -altlog /dev/stdout hello_world.sas&lt;/PRE&gt;&lt;P&gt;The stream is open though because this works:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;echo foobar &amp;gt; /dev/stdout&lt;/PRE&gt;</description>
      <pubDate>Mon, 23 Jul 2018 14:29:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Redirecting-log-to-stream-in-SAS-UNIX-batch/m-p/480453#M124180</guid>
      <dc:creator>tomcmacdonald</dc:creator>
      <dc:date>2018-07-23T14:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: Redirecting log to stream in SAS UNIX batch</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Redirecting-log-to-stream-in-SAS-UNIX-batch/m-p/480602#M124223</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/142145"&gt;@tomcmacdonald&lt;/a&gt;, I found this short bit in the &lt;A href="https://support.sas.com/documentation/cdl//en/hostunx/67929/HTML/default/viewer.htm#n1k384nd9e0s6rn1qegvdzbyt7ut.htm" target="_self"&gt;UNIX Companion&lt;/A&gt; about routing output to a terminal.&amp;nbsp; I don't have an AIX box handy, but this works on Linux:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename term terminal '/dev/stdout';
proc printto log=term; run;
proc options; run;
endsas;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Saving that as "test.sas" I could run it from an xterm and get the output back:&amp;nbsp; sas test.sas&lt;/P&gt;
&lt;P&gt;Also could pipe it to the more command just fine:&amp;nbsp; sas test.sas | more&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;HTH&lt;/P&gt;
&lt;P&gt;Dave&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jul 2018 19:19:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Redirecting-log-to-stream-in-SAS-UNIX-batch/m-p/480602#M124223</guid>
      <dc:creator>DaveHorne</dc:creator>
      <dc:date>2018-07-23T19:19:46Z</dc:date>
    </item>
  </channel>
</rss>

