<?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: Checking the status of ods listing in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Checking-the-status-of-ods-listing/m-p/76674#M16585</link>
    <description>JMo&lt;BR /&gt;
 &lt;BR /&gt;
don't make difficult work for your macro!&lt;BR /&gt;
 &lt;BR /&gt;
why not just leave it to the routine that is calling your macro&lt;BR /&gt;
As "listing" is a prerequisite of your macro, it's not much different than requiring a parameter to be defined. The environment calling your macro will/should know whether the status of the listing destination is important.&lt;BR /&gt;
 &lt;BR /&gt;
good luck&lt;BR /&gt;
PeterC</description>
    <pubDate>Sat, 24 Oct 2009 22:46:43 GMT</pubDate>
    <dc:creator>Peter_C</dc:creator>
    <dc:date>2009-10-24T22:46:43Z</dc:date>
    <item>
      <title>Checking the status of ods listing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Checking-the-status-of-ods-listing/m-p/76672#M16583</link>
      <description>I have a macro that requires ods listing to be &lt;B&gt;on&lt;/B&gt; to produce results, however, I don't usually run SAS with ods listing b/c I'm just creating tables or sending the output to Excel.  What I need to do is check the status of ods listing, turn it on if necessary and return it to the original state once the macro is finished.  Thank you.</description>
      <pubDate>Fri, 23 Oct 2009 23:23:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Checking-the-status-of-ods-listing/m-p/76672#M16583</guid>
      <dc:creator>JMo</dc:creator>
      <dc:date>2009-10-23T23:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: Checking the status of ods listing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Checking-the-status-of-ods-listing/m-p/76673#M16584</link>
      <description>Hi:&lt;BR /&gt;
 I do not believe there's a way to check the "existing" open/close status of the LISTING destination. This might be a question for Tech Support. ODS LISTING is -always- on when you start an interactive session or start a batch job....so unless you have explicitly issued an ODS _ALL_ CLOSE; or ODS LISTING CLOSE; (or put those statements in an AUTOEXEC program), you can generally be certain that the LISTING destination is on. One best practice that we recommend in our classes is to close the LISTING destination if you are creating other ODS output, but then to issue "housekeeping statements" at the end of every program to turn ODS LISTING back on:&lt;BR /&gt;
[pre]&lt;BR /&gt;
ODS LISTING;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
 &lt;BR /&gt;
cynthia&lt;BR /&gt;
&lt;BR /&gt;
ps..TEXT or LISTING output is turned OFF by default for SAS Enterprise Guide. That is the one exception to the above rule.</description>
      <pubDate>Fri, 23 Oct 2009 23:40:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Checking-the-status-of-ods-listing/m-p/76673#M16584</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2009-10-23T23:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: Checking the status of ods listing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Checking-the-status-of-ods-listing/m-p/76674#M16585</link>
      <description>JMo&lt;BR /&gt;
 &lt;BR /&gt;
don't make difficult work for your macro!&lt;BR /&gt;
 &lt;BR /&gt;
why not just leave it to the routine that is calling your macro&lt;BR /&gt;
As "listing" is a prerequisite of your macro, it's not much different than requiring a parameter to be defined. The environment calling your macro will/should know whether the status of the listing destination is important.&lt;BR /&gt;
 &lt;BR /&gt;
good luck&lt;BR /&gt;
PeterC</description>
      <pubDate>Sat, 24 Oct 2009 22:46:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Checking-the-status-of-ods-listing/m-p/76674#M16585</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2009-10-24T22:46:43Z</dc:date>
    </item>
  </channel>
</rss>

