<?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: Suppressing SGPLOT Results in SAS OnDemand in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Suppressing-SGPLOT-Results-in-SAS-OnDemand/m-p/687872#M208870</link>
    <description>&lt;P&gt;This works. Thanks. Should I &lt;CODE&gt;ods _all_ open&lt;/CODE&gt; to reverse and reopen the html?&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 15:57:09 GMT</pubDate>
    <dc:creator>Junyong</dc:creator>
    <dc:date>2020-09-30T15:57:09Z</dc:date>
    <item>
      <title>Suppressing SGPLOT Results in SAS OnDemand</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Suppressing-SGPLOT-Results-in-SAS-OnDemand/m-p/687709#M208805</link>
      <description>&lt;P&gt;In my desktop, the following code doesn't show the &lt;CODE&gt;sgplot&lt;/CODE&gt; results in SAS and just saves the drawn &lt;CODE&gt;gspc.pdf&lt;/CODE&gt; quietly. In SAS OnDemand, the code doesn't suppress the results while running.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data gspc;
	infile 'https://query1.finance.yahoo.com/v7/finance/download/^gspc?period1=-9999999999&amp;amp;period2=9999999999&amp;amp;interval=1mo' url firstobs=2 dsd truncover;
	input date yymmdd10. +1 open hi lo close adj vol;
run;

ods html select none;
ods results=off;
ods listing gpath="/home/junyong0/";
ods graphics/reset imagename="gspc" imagefmt=pdf noborder;

proc sgplot;
	series x=date y=adj;
	xaxis valuesformat=year4.;
	yaxis valuesformat=best4. type=log;
run;

ods graphics/reset;
ods listing gpath=none;
ods results=on;
ods html select all;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;How can I suppress the &lt;CODE&gt;sgplot&lt;/CODE&gt; results in SAS OnDemand?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:32:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Suppressing-SGPLOT-Results-in-SAS-OnDemand/m-p/687709#M208805</guid>
      <dc:creator>Junyong</dc:creator>
      <dc:date>2020-09-30T02:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: Suppressing SGPLOT Results in SAS OnDemand</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Suppressing-SGPLOT-Results-in-SAS-OnDemand/m-p/687717#M208811</link>
      <description>&lt;P&gt;I’m guessing they’re not the same SAS version?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;The imagefmt Option has changed to outputfmt in 9.4.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;What does the log show for both systems?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/173881"&gt;@Junyong&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;In my desktop, the following code doesn't show the &lt;CODE&gt;sgplot&lt;/CODE&gt; results in SAS and just saves the drawn &lt;CODE&gt;gspc.pdf&lt;/CODE&gt; quietly. In SAS OnDemand, the code doesn't suppress the results while running.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data gspc;
	infile 'https://query1.finance.yahoo.com/v7/finance/download/^gspc?period1=-9999999999&amp;amp;period2=9999999999&amp;amp;interval=1mo' url firstobs=2 dsd truncover;
	input date yymmdd10. +1 open hi lo close adj vol;
run;

ods html select none;
ods results=off;
ods listing gpath="/home/junyong0/";
ods graphics/reset imagename="gspc" imagefmt=pdf noborder;

proc sgplot;
	series x=date y=adj;
	xaxis valuesformat=year4.;
	yaxis valuesformat=best4. type=log;
run;

ods graphics/reset;
ods listing gpath=none;
ods results=on;
ods html select all;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;How can I suppress the &lt;CODE&gt;sgplot&lt;/CODE&gt; results in SAS OnDemand?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:03:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Suppressing-SGPLOT-Results-in-SAS-OnDemand/m-p/687717#M208811</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-09-30T04:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: Suppressing SGPLOT Results in SAS OnDemand</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Suppressing-SGPLOT-Results-in-SAS-OnDemand/m-p/687776#M208838</link>
      <description>ods _all_ close;</description>
      <pubDate>Wed, 30 Sep 2020 11:42:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Suppressing-SGPLOT-Results-in-SAS-OnDemand/m-p/687776#M208838</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2020-09-30T11:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: Suppressing SGPLOT Results in SAS OnDemand</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Suppressing-SGPLOT-Results-in-SAS-OnDemand/m-p/687872#M208870</link>
      <description>&lt;P&gt;This works. Thanks. Should I &lt;CODE&gt;ods _all_ open&lt;/CODE&gt; to reverse and reopen the html?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 15:57:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Suppressing-SGPLOT-Results-in-SAS-OnDemand/m-p/687872#M208870</guid>
      <dc:creator>Junyong</dc:creator>
      <dc:date>2020-09-30T15:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: Suppressing SGPLOT Results in SAS OnDemand</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Suppressing-SGPLOT-Results-in-SAS-OnDemand/m-p/687879#M208872</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/173881"&gt;@Junyong&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;This works. Thanks. Should I &lt;CODE&gt;ods _all_ open&lt;/CODE&gt; to reverse and reopen the html?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;No, you have to explicitly state which ODS destinations you want open.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are something like 20 ODS destinations supplied by SAS, depending on licensed modules, and I doubt that you would actually want that many open&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 17:03:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Suppressing-SGPLOT-Results-in-SAS-OnDemand/m-p/687879#M208872</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-09-30T17:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: Suppressing SGPLOT Results in SAS OnDemand</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Suppressing-SGPLOT-Results-in-SAS-OnDemand/m-p/687924#M208895</link>
      <description>&lt;P&gt;This is the most curious part—which &lt;CODE&gt;ods&lt;/CODE&gt; should I turn off in &lt;CODE&gt;proc sgplot&lt;/CODE&gt;? I tried &lt;CODE&gt;ods select none&lt;/CODE&gt; (+&lt;CODE&gt;ods select all&lt;/CODE&gt;) and &lt;CODE&gt;ods html close&lt;/CODE&gt; (+&lt;CODE&gt;ods html&lt;/CODE&gt;) to temporarily suppress it, but they don't work. I need the file but don't need the resultant SAS pop-up.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 18:35:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Suppressing-SGPLOT-Results-in-SAS-OnDemand/m-p/687924#M208895</guid>
      <dc:creator>Junyong</dc:creator>
      <dc:date>2020-09-30T18:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: Suppressing SGPLOT Results in SAS OnDemand</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Suppressing-SGPLOT-Results-in-SAS-OnDemand/m-p/688162#M209007</link>
      <description>No need to reopen if you don't want .&lt;BR /&gt;The following code could reopen ods destination .&lt;BR /&gt;&lt;BR /&gt;ods html ;&lt;BR /&gt;&lt;BR /&gt;ods listing ;</description>
      <pubDate>Thu, 01 Oct 2020 11:18:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Suppressing-SGPLOT-Results-in-SAS-OnDemand/m-p/688162#M209007</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2020-10-01T11:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: Suppressing SGPLOT Results in SAS OnDemand</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Suppressing-SGPLOT-Results-in-SAS-OnDemand/m-p/688307#M209061</link>
      <description>&lt;P&gt;SAS OnDemand uses neither &lt;CODE&gt;listing&lt;/CODE&gt; nor &lt;CODE&gt;html&lt;/CODE&gt;. I tried the following based on &lt;A href="https://communities.sas.com/t5/ODS-and-Base-Reporting/Knowing-which-ODS-destination-is-currently-open/td-p/2499" target="_blank"&gt;Knowing which ODS destination is currently open&lt;/A&gt;.&lt;/P&gt;&lt;PRE&gt; 1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 NOTE: ODS statements in the SAS Studio environment may disable some output features.
 71         
 72         ods listing show;
 ERROR: The LISTING destination is not active; no select/exclude lists are available.
 73         ods html show;
 ERROR: The HTML destination is not active; no select/exclude lists are available.
 74         
 75         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 86         &lt;/PRE&gt;&lt;P&gt;So &lt;CODE&gt;ods _all_ close&lt;/CODE&gt; cannot be reversed by &lt;CODE&gt;ods listing&lt;/CODE&gt; and &lt;CODE&gt;ods html&lt;/CODE&gt;—which ods destination does SAS OnDemand use for &lt;CODE&gt;proc sgplot&lt;/CODE&gt;?&lt;/P&gt;&lt;P&gt;I do NOT want to turn off everything.&lt;/P&gt;&lt;P&gt;I want to just close and open back and forth just for the &lt;CODE&gt;sgplot&lt;/CODE&gt;.&lt;/P&gt;&lt;P&gt;The following code does not print the &lt;CODE&gt;sgplot&lt;/CODE&gt; results in the desktop because the desktop SAS uses the &lt;CODE&gt;ods html&lt;/CODE&gt; and the capitalized parts turn off it.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data gspc;
	infile 'https://query1.finance.yahoo.com/v7/finance/download/^gspc?period1=-9999999999&amp;amp;period2=9999999999&amp;amp;interval=1mo' url firstobs=2 dsd truncover;
	input date yymmdd10. +1 open hi lo close adj vol;
run;

ODS HTML SELECT NONE;
ODS RESULTS=OFF;
ods listing gpath="!userprofile\desktop\";
ods graphics/reset imagename="gspc" imagefmt=pdf noborder;

proc sgplot;
	series x=date y=adj;
	xaxis valuesformat=year4.;
	yaxis valuesformat=best4. type=log;
run;

ods graphics/reset;
ods listing gpath=none;
ODS RESULTS=ON;
ODS HTML SELECT ALL;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This code, however, does not suppress the &lt;CODE&gt;sgplot&lt;/CODE&gt; results in SAS OnDemand, which uses neither &lt;CODE&gt;listing&lt;/CODE&gt; nor &lt;CODE&gt;html&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2020 17:42:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Suppressing-SGPLOT-Results-in-SAS-OnDemand/m-p/688307#M209061</guid>
      <dc:creator>Junyong</dc:creator>
      <dc:date>2020-10-01T17:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: Suppressing SGPLOT Results in SAS OnDemand</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Suppressing-SGPLOT-Results-in-SAS-OnDemand/m-p/688309#M209062</link>
      <description>Sounds like it's time for a tech support question?</description>
      <pubDate>Thu, 01 Oct 2020 18:08:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Suppressing-SGPLOT-Results-in-SAS-OnDemand/m-p/688309#M209062</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-10-01T18:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: Suppressing SGPLOT Results in SAS OnDemand</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Suppressing-SGPLOT-Results-in-SAS-OnDemand/m-p/688479#M209154</link>
      <description>ods graphics off;&lt;BR /&gt;&lt;BR /&gt;could close ODS Graph</description>
      <pubDate>Fri, 02 Oct 2020 11:15:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Suppressing-SGPLOT-Results-in-SAS-OnDemand/m-p/688479#M209154</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2020-10-02T11:15:18Z</dc:date>
    </item>
  </channel>
</rss>

