<?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: Why does ODS LISTING CLOSE prevent graph export? in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Why-does-ODS-LISTING-CLOSE-prevent-graph-export/m-p/306021#M17187</link>
    <description>&lt;P&gt;Hi, not many folks are using gsfname= option anymore. Some destination has to be open in order for GCHART to create output. The same thing is true of other SAS procedures too. IF ALL destinations are closed, then there are some procedures that will not produce output, even if you're asking for an image or a dataset.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; But, even if, for example, LISTING is closed -- you can get a PNG image created automatically if you were creating HTML output. Then a PNG file would be created automatically. For example,see the following example without GSFNAME just using ODS HTML.&lt;BR /&gt;cynthia&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/5388i0CFE8E9709B430F4/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="make_graf.png" title="make_graf.png" /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 20 Oct 2016 17:56:30 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2016-10-20T17:56:30Z</dc:date>
    <item>
      <title>Why does ODS LISTING CLOSE prevent graph export?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Why-does-ODS-LISTING-CLOSE-prevent-graph-export/m-p/305943#M17186</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I am running Base SAS 9.4 on Windows. &amp;nbsp;Opening a new session, I submit the following code:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*ods listing close;*/

filename grafout "C:\output\sastest.png"; 
goptions reset=goptions device=png gsfname=grafout;

proc gchart data=sashelp.class;
   where sex="F";
   vbar age / sumvar=weight type=mean subgroup=age 
              nolegend discrete;
run; 
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The file &lt;CODE&gt;sastest.png&lt;/CODE&gt;&lt;SPAN&gt; is exported to the &lt;/SPAN&gt;&lt;CODE&gt;C:\output&lt;/CODE&gt;&lt;SPAN&gt; folder. &amp;nbsp;However, if I place an &lt;/SPAN&gt;&lt;CODE&gt;ods listing close;&lt;/CODE&gt;&lt;SPAN&gt;statement at the top of the code, the graph is no longer exported.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Apparently, the &lt;A href="http://support.sas.com/documentation/cdl/en/odsug/67921/HTML/default/viewer.htm#n1lyhxs0ue101in1snowd4cdd15q.htm" target="_blank"&gt;listing&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;destination is more than&amp;nbsp;&lt;/SPAN&gt;"&lt;SPAN&gt;an ODS destination that produces traditional SAS output (monospace format)."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;It is even more confusing because listing is turned off by default:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;SPAN&gt;Beginning with SAS 9.3, by default, in the Windowing environment with the Windows and UNIX operating systems, the LISTING destination is closed and the HTML destination is open.&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Why would the &lt;/SPAN&gt;&lt;CODE&gt;ods listing close;&lt;/CODE&gt;&lt;SPAN&gt; statement prevent the graph from exporting?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2016 13:53:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Why-does-ODS-LISTING-CLOSE-prevent-graph-export/m-p/305943#M17186</guid>
      <dc:creator>LoremIpsum</dc:creator>
      <dc:date>2016-10-20T13:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: Why does ODS LISTING CLOSE prevent graph export?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Why-does-ODS-LISTING-CLOSE-prevent-graph-export/m-p/306021#M17187</link>
      <description>&lt;P&gt;Hi, not many folks are using gsfname= option anymore. Some destination has to be open in order for GCHART to create output. The same thing is true of other SAS procedures too. IF ALL destinations are closed, then there are some procedures that will not produce output, even if you're asking for an image or a dataset.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; But, even if, for example, LISTING is closed -- you can get a PNG image created automatically if you were creating HTML output. Then a PNG file would be created automatically. For example,see the following example without GSFNAME just using ODS HTML.&lt;BR /&gt;cynthia&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/5388i0CFE8E9709B430F4/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="make_graf.png" title="make_graf.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2016 17:56:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Why-does-ODS-LISTING-CLOSE-prevent-graph-export/m-p/306021#M17187</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2016-10-20T17:56:30Z</dc:date>
    </item>
  </channel>
</rss>

