<?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: Can I redirect PROC SETINIT to OUTPUT instead of LOG? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Can-I-redirect-PROC-SETINIT-to-OUTPUT-instead-of-LOG/m-p/178998#M45700</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Will either of these work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sas -initstmt "proc setinit; endsas;" -nonotes -nonews -stdio&lt;/P&gt;&lt;P&gt;sas -initstmt "proc setinit; endsas;" -nonotes -nonews -nodms 1&amp;gt;&amp;amp;2&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Oct 2014 20:49:10 GMT</pubDate>
    <dc:creator>JerryV</dc:creator>
    <dc:date>2014-10-09T20:49:10Z</dc:date>
    <item>
      <title>Can I redirect PROC SETINIT to OUTPUT instead of LOG?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Can-I-redirect-PROC-SETINIT-to-OUTPUT-instead-of-LOG/m-p/178997#M45699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am a SAS Administrator using a Linux/Unix version of SAS, and I would like to be able to automatically scrape PROC SETINIT output from stdout, rather than having to scrape log files. I found the -stdio invocation option (from here: &lt;A href="http://support.sas.com/documentation/cdl/en/hostunx/61879/HTML/default/viewer.htm#unx-sysopt-stdio.htm"&gt;http://support.sas.com/documentation/cdl/en/hostunx/61879/HTML/default/viewer.htm#unx-sysopt-stdio.htm&lt;/A&gt;), but the PROC SETINIT output goes to the LOG, which contains a lot more information than I need or want to have to filter. I've tried using ODS and PROC PRINTTO to redirect the LOG-bound output of PROC SETINIT to the OUTPUT destination, thus sending the PROC's output over stdout instead o, f stderr, but I haven't had any success.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to redirect SETINIT output (and only SETINIT output) to stdout, or am I over-thinking this? Any suggestions would be greatly appreciated. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Oct 2014 19:36:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Can-I-redirect-PROC-SETINIT-to-OUTPUT-instead-of-LOG/m-p/178997#M45699</guid>
      <dc:creator>gpandzik</dc:creator>
      <dc:date>2014-10-09T19:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: Can I redirect PROC SETINIT to OUTPUT instead of LOG?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Can-I-redirect-PROC-SETINIT-to-OUTPUT-instead-of-LOG/m-p/178998#M45700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Will either of these work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sas -initstmt "proc setinit; endsas;" -nonotes -nonews -stdio&lt;/P&gt;&lt;P&gt;sas -initstmt "proc setinit; endsas;" -nonotes -nonews -nodms 1&amp;gt;&amp;amp;2&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Oct 2014 20:49:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Can-I-redirect-PROC-SETINIT-to-OUTPUT-instead-of-LOG/m-p/178998#M45700</guid>
      <dc:creator>JerryV</dc:creator>
      <dc:date>2014-10-09T20:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: Can I redirect PROC SETINIT to OUTPUT instead of LOG?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Can-I-redirect-PROC-SETINIT-to-OUTPUT-instead-of-LOG/m-p/178999#M45701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used the first command with a redirection into grep to filter out a few extra lines some of our canned start-up scripts add (allocating some Meta-based libraries that produced NOTE: lines, that kind of thing).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I came up with, and it fits the bill pretty well:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sas -initstmt "proc setinit; endsas;" -nonotes -nonews -stdio 2&amp;gt;&amp;amp;1 | grep -v -e "NOTE:" -e "User:" -e " The SAS System" -e "^$"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Oct 2014 20:59:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Can-I-redirect-PROC-SETINIT-to-OUTPUT-instead-of-LOG/m-p/178999#M45701</guid>
      <dc:creator>gpandzik</dc:creator>
      <dc:date>2014-10-09T20:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: Can I redirect PROC SETINIT to OUTPUT instead of LOG?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Can-I-redirect-PROC-SETINIT-to-OUTPUT-instead-of-LOG/m-p/369421#M65039</link>
      <description>&lt;P&gt;I am also trying to achieve that in windows . can somebody please tell me how can i do that using base sas code?&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;jagjit&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2017 10:01:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Can-I-redirect-PROC-SETINIT-to-OUTPUT-instead-of-LOG/m-p/369421#M65039</guid>
      <dc:creator>jagjit_sas</dc:creator>
      <dc:date>2017-06-22T10:01:18Z</dc:date>
    </item>
  </channel>
</rss>

