<?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 Plotting During ODS LISTING CLOSE in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Plotting-During-ODS-LISTING-CLOSE/m-p/679165#M20411</link>
    <description>&lt;P&gt;I am using &lt;CODE&gt;npar1way&lt;/CODE&gt; to get Kolmogorov–Smirnov statistics and want to get the empirical distribution functions as well. However, I am already using &lt;CODE&gt;ods listing close&lt;/CODE&gt; and &lt;CODE&gt;ods results=off&lt;/CODE&gt; to suppress both output and results as follows.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
	do i=1 to 5;
		do j=1,2;
			do k=1 to 20;
				x=rannor(1);
				output;
			end;
		end;
	end;
run;

ods listing close;
ods results=off;

proc npar1way edf d plots=edf;
	by i;
	class j;
	var x;
	ods output ks2stats=out;
run;

ods results=on;
ods listing;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I want to use &lt;CODE&gt;ods listing gpath="!userprofile\desktop\"&lt;/CODE&gt; and &lt;CODE&gt;ods graphics/imagename="edf"&lt;/CODE&gt; to draw the five (for &lt;CODE&gt;i=1 to 5&lt;/CODE&gt;) pictures—with output and results still suppressed. Where should I locate the &lt;CODE&gt;ods listing gpath&lt;/CODE&gt; then? Thanks.&lt;/P&gt;</description>
    <pubDate>Tue, 25 Aug 2020 14:41:57 GMT</pubDate>
    <dc:creator>Junyong</dc:creator>
    <dc:date>2020-08-25T14:41:57Z</dc:date>
    <item>
      <title>Plotting During ODS LISTING CLOSE</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Plotting-During-ODS-LISTING-CLOSE/m-p/679165#M20411</link>
      <description>&lt;P&gt;I am using &lt;CODE&gt;npar1way&lt;/CODE&gt; to get Kolmogorov–Smirnov statistics and want to get the empirical distribution functions as well. However, I am already using &lt;CODE&gt;ods listing close&lt;/CODE&gt; and &lt;CODE&gt;ods results=off&lt;/CODE&gt; to suppress both output and results as follows.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
	do i=1 to 5;
		do j=1,2;
			do k=1 to 20;
				x=rannor(1);
				output;
			end;
		end;
	end;
run;

ods listing close;
ods results=off;

proc npar1way edf d plots=edf;
	by i;
	class j;
	var x;
	ods output ks2stats=out;
run;

ods results=on;
ods listing;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I want to use &lt;CODE&gt;ods listing gpath="!userprofile\desktop\"&lt;/CODE&gt; and &lt;CODE&gt;ods graphics/imagename="edf"&lt;/CODE&gt; to draw the five (for &lt;CODE&gt;i=1 to 5&lt;/CODE&gt;) pictures—with output and results still suppressed. Where should I locate the &lt;CODE&gt;ods listing gpath&lt;/CODE&gt; then? Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Aug 2020 14:41:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Plotting-During-ODS-LISTING-CLOSE/m-p/679165#M20411</guid>
      <dc:creator>Junyong</dc:creator>
      <dc:date>2020-08-25T14:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting During ODS LISTING CLOSE</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Plotting-During-ODS-LISTING-CLOSE/m-p/679326#M20415</link>
      <description>&lt;P&gt;This is what I found. &lt;CODE&gt;ods select edfplot&lt;/CODE&gt; alters &lt;CODE&gt;ods listing close&lt;/CODE&gt; here.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods select edfplot;
ods graphics on;
ods listing gpath="!userprofile\desktop\";
ods results=off;

proc npar1way edf d plots=edf;
	by i;
	class j;
	var x;
	ods output ks2stats=out;
run;

ods results=on;
ods listing gpath=none;
ods graphics off;
ods select all;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I am not sure whether this is best, but this works.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Aug 2020 02:16:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Plotting-During-ODS-LISTING-CLOSE/m-p/679326#M20415</guid>
      <dc:creator>Junyong</dc:creator>
      <dc:date>2020-08-26T02:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting During ODS LISTING CLOSE</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Plotting-During-ODS-LISTING-CLOSE/m-p/679556#M20418</link>
      <description>&lt;P&gt;In general, there is no need to close an ODS destination (such as LISTING) if your goal is to suppress the output. Instead, &lt;A href="https://blogs.sas.com/content/iml/2015/05/28/five-reasons-ods-exclude.html" target="_self"&gt;the preferred way to suppress output&lt;/A&gt; is to use&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ODS EXCLUDE ALL;&lt;/P&gt;
&lt;P&gt;before the procedure call and use&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ODS EXCLUDE ALL;&lt;/P&gt;
&lt;P&gt;after the procedure call. That way, you can use additional calls to ODS SELECT and ODS OUPUT to manage the tables and graphs.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Aug 2020 16:58:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Plotting-During-ODS-LISTING-CLOSE/m-p/679556#M20418</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2020-08-26T16:58:45Z</dc:date>
    </item>
  </channel>
</rss>

