<?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: Warning: no output destinations active...for ods graphics in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Warning-no-output-destinations-active-for-ods-graphics/m-p/198325#M7389</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your %example macro is inheriting which ever ODS destination(s) is open. If none are open at the time it is called you'll get this message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your largemacro is calling other macros that would be a likely place to look for an ill placed _all_ close.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Jun 2015 21:25:40 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2015-06-02T21:25:40Z</dc:date>
    <item>
      <title>Warning: no output destinations active...for ods graphics</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Warning-no-output-destinations-active-for-ods-graphics/m-p/198324#M7388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;I have been using the the following ods statement to output a histogram using proc sgplot. This code is contained within a macro which is placed&amp;nbsp; in another large macro and is activated when certain conditions are met...i.e:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%macro example;&lt;/P&gt;&lt;P&gt;----------------------------------&lt;/P&gt;&lt;P&gt;-------------------------------&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;ods listing gpath = "&amp;amp;out." ;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;/&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* create PNG image file */&lt;/P&gt;&lt;P&gt;ods graphics on / reset=index imagename = "histogram" ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sgplot data=out.&amp;amp;summary.;&lt;/P&gt;&lt;P&gt; histogram xyz;&lt;/P&gt;&lt;P&gt; xaxis thresholdmin=1&amp;nbsp; thresholdmax=1;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;%mend example;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Within the larger code there is a statement that says:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%macro largemacro;&lt;/P&gt;&lt;P&gt;several sas codes--------------------&lt;/P&gt;&lt;P&gt;-------------------&lt;/P&gt;&lt;P&gt;-------------------&lt;/P&gt;&lt;P&gt;if a in (1,2,3) then %example;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods_all_close;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%mend largemacro;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ran it for different examples of data and this is the first time I noticed this problem. I am able to get the dataset '&amp;amp;summary' and it has the variable xyz in it. I also tried removing the ods_all_close statement but it still doesn't work. I don't think the ods_all_close statement affects ods grahics ( It was placed to ensure all output destinations are closed for subsequent program runs ). There are several such ods_all_close statement in the entire code. As I mentioned it works for other examples. I would appreciate your help. Thanks !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2015 20:54:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Warning-no-output-destinations-active-for-ods-graphics/m-p/198324#M7388</guid>
      <dc:creator>dr2014</dc:creator>
      <dc:date>2015-06-02T20:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: Warning: no output destinations active...for ods graphics</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Warning-no-output-destinations-active-for-ods-graphics/m-p/198325#M7389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your %example macro is inheriting which ever ODS destination(s) is open. If none are open at the time it is called you'll get this message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your largemacro is calling other macros that would be a likely place to look for an ill placed _all_ close.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2015 21:25:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Warning-no-output-destinations-active-for-ods-graphics/m-p/198325#M7389</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-06-02T21:25:40Z</dc:date>
    </item>
  </channel>
</rss>

