<?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: How can I avoid printing result tables in data step or proc SQL in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-can-I-avoid-showing-result-tables-from-data-step-or-proc-SQL/m-p/310917#M21011</link>
    <description>&lt;P&gt;Just do&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc delete data=
  have01
  date01
  var
;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The syntax is described here: &lt;A href="http://support.sas.com/documentation/cdl/en/proc/68954/HTML/default/viewer.htm#n0g4dpgdbjck3hn15hok6h8hk7n4.htm" target="_blank"&gt;DELETE Procedure&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 11 Nov 2016 11:10:53 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2016-11-11T11:10:53Z</dc:date>
    <item>
      <title>How can I avoid showing result tables from data step or proc SQL in the Process Flow</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-can-I-avoid-showing-result-tables-from-data-step-or-proc-SQL/m-p/310903#M21006</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I run the following code...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data Have01;
  Input MyVar $ Date Date9.;
  Format Date Date9.;
  Datalines;
z101    04JAN16
z102    08JAN16
z103    12JAN16
;
Run;

Data Dates01 (Keep=Date);
  Format Date Date9.;
  Do i=0 To 365;
    Date=IntNX('day','01JAN2016'd,i);
	Output;
  End;
Run;

Proc SQL;
  Create Table Var As Select Distinct MyVar From Have01 Order By MyVar;
Quit;

Proc SQL;
  Create Table Want01 As Select * From Var, Dates;
Quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I get the following results...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/5774i3C49BD6D20FD594E/image-size/original?v=v2&amp;amp;px=-1" alt="res01.png" title="res01.png" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there any method that the result on workspace should be only HAVE01 and all other tables should not appear? I just want end result table to be there and not other three. Something like this..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/5775iED6889E9996F50C4/image-size/original?v=v2&amp;amp;px=-1" alt="res02.png" title="res02.png" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2016 10:36:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-can-I-avoid-showing-result-tables-from-data-step-or-proc-SQL/m-p/310903#M21006</guid>
      <dc:creator>imanojkumar1</dc:creator>
      <dc:date>2016-11-11T10:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: How can I avoid printing result tables in data step or proc SQL</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-can-I-avoid-showing-result-tables-from-data-step-or-proc-SQL/m-p/310906#M21007</link>
      <description>&lt;P&gt;Use proc delete to remove datasets that are no longer needed. EG usually detects this from the log.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2016 10:35:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-can-I-avoid-showing-result-tables-from-data-step-or-proc-SQL/m-p/310906#M21007</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-11-11T10:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: How can I avoid printing result tables in data step or proc SQL</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-can-I-avoid-showing-result-tables-from-data-step-or-proc-SQL/m-p/310907#M21008</link>
      <description>&lt;P&gt;Well, I don't know EG that well, but I suppose after your code you could add:&lt;/P&gt;
&lt;PRE&gt;proc datasets lib=work;
  delete dates01 var;
quit;
run;&lt;/PRE&gt;
&lt;P&gt;However that being said, looking at your code I don't see the reasoning in all those datasets simply:&lt;/P&gt;
&lt;PRE&gt;data have;
  input myvar $ date date9.;
  format date date9.;
  datalines;
z101    04JAN16
z102    08JAN16
z103    12JAN16
;
run;

data want;
  set have;
  format mydate date9.;
  do mydate="01JAN2016"d to "31DEC2016"d;
    output;
  end;
run;&lt;/PRE&gt;
&lt;P&gt;Achieves the same result? &amp;nbsp;What is the point of the variable "date" in the have? &amp;nbsp;Also, not a good idea to call things VAR and DATE as these are keywords, use something descriptive of your data.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2016 10:42:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-can-I-avoid-showing-result-tables-from-data-step-or-proc-SQL/m-p/310907#M21008</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-11-11T10:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: How can I avoid printing result tables in data step or proc SQL</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-can-I-avoid-showing-result-tables-from-data-step-or-proc-SQL/m-p/310916#M21010</link>
      <description>&lt;P&gt;Ohh I got it... first I tried..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc datasets lib=work;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; delete HAVE01 DATE01 VAR;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I tried... and It worked.....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Proc Delete Data = work.Date01 work.Have01 work.VAR;&amp;nbsp;&amp;nbsp;&amp;nbsp; *This will delete these datasets in work;&lt;BR /&gt;&amp;nbsp;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for helping.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2016 11:12:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-can-I-avoid-showing-result-tables-from-data-step-or-proc-SQL/m-p/310916#M21010</guid>
      <dc:creator>imanojkumar1</dc:creator>
      <dc:date>2016-11-11T11:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: How can I avoid printing result tables in data step or proc SQL</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-can-I-avoid-showing-result-tables-from-data-step-or-proc-SQL/m-p/310917#M21011</link>
      <description>&lt;P&gt;Just do&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc delete data=
  have01
  date01
  var
;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The syntax is described here: &lt;A href="http://support.sas.com/documentation/cdl/en/proc/68954/HTML/default/viewer.htm#n0g4dpgdbjck3hn15hok6h8hk7n4.htm" target="_blank"&gt;DELETE Procedure&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2016 11:10:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-can-I-avoid-showing-result-tables-from-data-step-or-proc-SQL/m-p/310917#M21011</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-11-11T11:10:53Z</dc:date>
    </item>
  </channel>
</rss>

