<?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: ODS SELECT doesn't work for several PROCs compiled all at once in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ODS-SELECT-doesn-t-work-for-several-PROCs-compiled-all-at-once/m-p/404302#M98278</link>
    <description>&lt;P&gt;Always put the ODS statements after the proc statement (even though they often work before).&amp;nbsp; Always end interactive procedures like glm and reg with a quit statement not a run statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/statug/67523/HTML/default/viewer.htm#statug_ods_examples06.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/statug/67523/HTML/default/viewer.htm#statug_ods_examples06.htm&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 15 Oct 2017 16:54:27 GMT</pubDate>
    <dc:creator>WarrenKuhfeld</dc:creator>
    <dc:date>2017-10-15T16:54:27Z</dc:date>
    <item>
      <title>ODS SELECT doesn't work for several PROCs compiled all at once</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-SELECT-doesn-t-work-for-several-PROCs-compiled-all-at-once/m-p/404291#M98277</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt; &lt;BR /&gt;If I run the following code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ODS SELECT GLM.ANOVA.AA.DiagnosticsPanel;
PROC GLM DATA = mydata1 PLOT = DIAGNOSTICS; CLASS A B; MODEL AA = A | B / SS3; OUTPUT OUT = res1 RESIDUAL = res1; RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;I can see the normal Fit Diagnostic plots. But if I run several commands:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ODS SELECT GLM.ANOVA.AA.DiagnosticsPanel;
PROC GLM DATA = mydata1 PLOT = DIAGNOSTICS; CLASS A B; MODEL AA = A | B / SS3; OUTPUT OUT = res1 RESIDUAL = res1; RUN;
ODS SELECT GLM.ANOVA.BB.DiagnosticsPanel;
PROC GLM DATA = mydata2 PLOT = DIAGNOSTICS; CLASS A B; MODEL BB = A | B / SS3; OUTPUT OUT = res2 RESIDUAL = res2; RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;There are warnings in the Log window:&lt;BR /&gt;&lt;EM&gt;WARNING:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Output 'GLM.ANOVA.BB.DiagnosticsPanel' was not created. Make sure that the output object name, label, or path is spelled&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;correctly. Also, verify that the appropriate procedure options are used to produce the requested output object. For&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;example, verify that the NOPRINT option is not used.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;WARNING:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;The current ODS SELECT/EXCLUDE/OUTPUT statement was cleared because the end of a procedure step was detected. Probable causes for this include the non-termination of an interactive procedure (type quit; to end the procedure) and a run group&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;with no output.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the Results window I can see normal Fit Diagnostic plots for AA, but for BB --- complete PROC GLM output (including diagnostics).&lt;BR /&gt; &lt;BR /&gt;What's the reason ?&lt;/P&gt;</description>
      <pubDate>Sun, 15 Oct 2017 13:06:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-SELECT-doesn-t-work-for-several-PROCs-compiled-all-at-once/m-p/404291#M98277</guid>
      <dc:creator>stan</dc:creator>
      <dc:date>2017-10-15T13:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: ODS SELECT doesn't work for several PROCs compiled all at once</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-SELECT-doesn-t-work-for-several-PROCs-compiled-all-at-once/m-p/404302#M98278</link>
      <description>&lt;P&gt;Always put the ODS statements after the proc statement (even though they often work before).&amp;nbsp; Always end interactive procedures like glm and reg with a quit statement not a run statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/statug/67523/HTML/default/viewer.htm#statug_ods_examples06.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/statug/67523/HTML/default/viewer.htm#statug_ods_examples06.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 15 Oct 2017 16:54:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-SELECT-doesn-t-work-for-several-PROCs-compiled-all-at-once/m-p/404302#M98278</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2017-10-15T16:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: ODS SELECT doesn't work for several PROCs compiled all at once</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-SELECT-doesn-t-work-for-several-PROCs-compiled-all-at-once/m-p/404304#M98279</link>
      <description>&lt;P&gt;HI, &lt;BR /&gt;Since PROC GLM is one of the procedures that CAN be run interactively, my guess is that you would be better off ending each step with &lt;BR /&gt;RUN:&lt;BR /&gt;QUIT;&lt;BR /&gt;which should force each separate step to end by providing a "hard" step boundary. Frequently with ODS and procedures that support RUN group processing, if you want your desired output to be produced, you need to make sure you end the procedure BEFORE the destination closes. So typically, it would be something like this:&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;ods dest file='xxx.yyy';&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;ods select ???;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;proc 1;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;run;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;quit;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;ods select ???;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;proc 2;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;run;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;quit;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;ods dest close;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Sun, 15 Oct 2017 17:00:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-SELECT-doesn-t-work-for-several-PROCs-compiled-all-at-once/m-p/404304#M98279</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2017-10-15T17:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: ODS SELECT doesn't work for several PROCs compiled all at once</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-SELECT-doesn-t-work-for-several-PROCs-compiled-all-at-once/m-p/404310#M98280</link>
      <description>WarrenKuhfeld and Cynthia_sas, thank you very much &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; (It works.)</description>
      <pubDate>Sun, 15 Oct 2017 17:23:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-SELECT-doesn-t-work-for-several-PROCs-compiled-all-at-once/m-p/404310#M98280</guid>
      <dc:creator>stan</dc:creator>
      <dc:date>2017-10-15T17:23:47Z</dc:date>
    </item>
  </channel>
</rss>

