<?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 Delete HTMLfile and SAS Report using SAS code in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Delete-HTMLfile-and-SAS-Report-using-SAS-code/m-p/629450#M23818</link>
    <description>&lt;P&gt;Is there anyway to suppress ODS completely, or is there anyway to delete an html output or sas report using code?&amp;nbsp; My problem is when I run the code below, SAS still produces an HTML&amp;nbsp; file and SAS report with nothing in it.&amp;nbsp; I want to either suppress the creation of these output files or delete them after they have been produced.&amp;nbsp; My motivation is that I'm trying to create a process flow branch in SAS Enterprise Guide that only includes SAS programs and datasets.&amp;nbsp; I find that the creation of this html file and SAS report makes the branch look messy, especially since these files are blank anyway.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for any help you can provide.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bill&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ODS EXCLUDE ALL;&lt;BR /&gt;ODS OUTPUT PARAMETERESTIMATES(PERSIST=RUN)=EST;&lt;BR /&gt;&lt;BR /&gt;PROC REG DATA = DATA&lt;BR /&gt;MODEL Y = X;&lt;BR /&gt;&lt;BR /&gt;RUN;&lt;BR /&gt;&lt;BR /&gt;ODS OUTPUT CLOSE;&lt;BR /&gt;ODS EXCLUDE NONE;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Mar 2020 15:05:47 GMT</pubDate>
    <dc:creator>whs278</dc:creator>
    <dc:date>2020-03-04T15:05:47Z</dc:date>
    <item>
      <title>Delete HTMLfile and SAS Report using SAS code</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Delete-HTMLfile-and-SAS-Report-using-SAS-code/m-p/629450#M23818</link>
      <description>&lt;P&gt;Is there anyway to suppress ODS completely, or is there anyway to delete an html output or sas report using code?&amp;nbsp; My problem is when I run the code below, SAS still produces an HTML&amp;nbsp; file and SAS report with nothing in it.&amp;nbsp; I want to either suppress the creation of these output files or delete them after they have been produced.&amp;nbsp; My motivation is that I'm trying to create a process flow branch in SAS Enterprise Guide that only includes SAS programs and datasets.&amp;nbsp; I find that the creation of this html file and SAS report makes the branch look messy, especially since these files are blank anyway.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for any help you can provide.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bill&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ODS EXCLUDE ALL;&lt;BR /&gt;ODS OUTPUT PARAMETERESTIMATES(PERSIST=RUN)=EST;&lt;BR /&gt;&lt;BR /&gt;PROC REG DATA = DATA&lt;BR /&gt;MODEL Y = X;&lt;BR /&gt;&lt;BR /&gt;RUN;&lt;BR /&gt;&lt;BR /&gt;ODS OUTPUT CLOSE;&lt;BR /&gt;ODS EXCLUDE NONE;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2020 15:05:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Delete-HTMLfile-and-SAS-Report-using-SAS-code/m-p/629450#M23818</guid>
      <dc:creator>whs278</dc:creator>
      <dc:date>2020-03-04T15:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: Delete HTMLfile and SAS Report using SAS code</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Delete-HTMLfile-and-SAS-Report-using-SAS-code/m-p/629453#M23819</link>
      <description>&lt;P&gt;Execute conditionally?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql noprint;
select nobs into :nobs
from dictionary.tables
where libname = 'WORK' and memname = 'DATA';
quit;

%if &amp;amp;nobs. &amp;gt; 0
%then %do;

ODS EXCLUDE ALL;
ODS OUTPUT PARAMETERESTIMATES(PERSIST=RUN)=EST;

PROC REG DATA = DATA
MODEL Y = X;

RUN;

ODS OUTPUT CLOSE;
ODS EXCLUDE NONE;

%end;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 04 Mar 2020 15:09:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Delete-HTMLfile-and-SAS-Report-using-SAS-code/m-p/629453#M23819</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-03-04T15:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: Delete HTMLfile and SAS Report using SAS code</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Delete-HTMLfile-and-SAS-Report-using-SAS-code/m-p/629454#M23820</link>
      <description>Thanks for the quick reply. However, I need the code to run in order to create the dataset EST. I just don't need any HTML or ODS output.</description>
      <pubDate>Wed, 04 Mar 2020 15:16:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Delete-HTMLfile-and-SAS-Report-using-SAS-code/m-p/629454#M23820</guid>
      <dc:creator>whs278</dc:creator>
      <dc:date>2020-03-04T15:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: Delete HTMLfile and SAS Report using SAS code</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Delete-HTMLfile-and-SAS-Report-using-SAS-code/m-p/629459#M23821</link>
      <description>&lt;P&gt;Then you could conditionally create the NOPRINT option in the PROC REG statement:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let nobs=0;

proc sql noprint;
select nobs into :nobs
from dictionary.tables
where libname = 'WORK' and memname = 'DATA';
quit;

proc reg data=data
%if &amp;amp;nobs. = 0
%then %do
  noprint
%end;
;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 04 Mar 2020 15:36:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Delete-HTMLfile-and-SAS-Report-using-SAS-code/m-p/629459#M23821</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-03-04T15:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: Delete HTMLfile and SAS Report using SAS code</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Delete-HTMLfile-and-SAS-Report-using-SAS-code/m-p/629462#M23822</link>
      <description>Okay, I realize that for this program i used proc reg, so i can use an output statement to save the parameter estimates into a dataset without using ODS.&lt;BR /&gt;&lt;BR /&gt;However, I have a similar program where I use proc surveyreg instead. As far as I know, there is no way to save the parameter estimates from proc survey reg without using ODS OUTPUT. However, I don't want to actually print anything or create any html files, hence the ODS exclude statement. All I want to do is save the parameter estimates into a dataset. The problem is that even when using the ODS exclude statement, a blank html file is still created. I want to know if there is any way to use the ODS OUTPUT statement without creating an html file, or, at the very least, if there is a way to delete the html file after it is created using some SAS procedure.&lt;BR /&gt;</description>
      <pubDate>Wed, 04 Mar 2020 15:53:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Delete-HTMLfile-and-SAS-Report-using-SAS-code/m-p/629462#M23822</guid>
      <dc:creator>whs278</dc:creator>
      <dc:date>2020-03-04T15:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: Delete HTMLfile and SAS Report using SAS code</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Delete-HTMLfile-and-SAS-Report-using-SAS-code/m-p/629463#M23823</link>
      <description>&lt;P&gt;Then close all ODS destinations before you run the procedure, and open only ODS OUTPUT.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2020 15:56:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Delete-HTMLfile-and-SAS-Report-using-SAS-code/m-p/629463#M23823</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-03-04T15:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: Delete HTMLfile and SAS Report using SAS code</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Delete-HTMLfile-and-SAS-Report-using-SAS-code/m-p/630933#M23844</link>
      <description>Thank you.  Running the ODS _ALL_ CLOSE statement before the ODS OUTPUT statement did the trick.</description>
      <pubDate>Tue, 10 Mar 2020 14:39:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Delete-HTMLfile-and-SAS-Report-using-SAS-code/m-p/630933#M23844</guid>
      <dc:creator>whs278</dc:creator>
      <dc:date>2020-03-10T14:39:22Z</dc:date>
    </item>
  </channel>
</rss>

