<?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: proc freq  nlevels -prevent print in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-freq-nlevels-prevent-print/m-p/857708#M338906</link>
    <description>&lt;P&gt;Looking at the docs of proc freq, it seems an option exists preventing all printed output.&lt;/P&gt;</description>
    <pubDate>Wed, 08 Feb 2023 10:12:54 GMT</pubDate>
    <dc:creator>andreas_lds</dc:creator>
    <dc:date>2023-02-08T10:12:54Z</dc:date>
    <item>
      <title>proc freq  nlevels -prevent print</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-freq-nlevels-prevent-print/m-p/857701#M338900</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;I want to create a data set called nlev_all that contain formation of&amp;nbsp; number of missing observations.&lt;/P&gt;
&lt;P&gt;The data set was created and it is 100% fine.&lt;/P&gt;
&lt;P&gt;The problem is that I don't want to print it.&lt;/P&gt;
&lt;P&gt;What is the way to prevent print of data set nlev_all?&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;ods output nlevels=work.nlev_all;&lt;BR /&gt;proc freq data=sashelp.shoes nlevels;&lt;BR /&gt;tables _all_ /noprint;&lt;BR /&gt;run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 08:56:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-freq-nlevels-prevent-print/m-p/857701#M338900</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2023-02-08T08:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: proc freq  nlevels -prevent print</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-freq-nlevels-prevent-print/m-p/857708#M338906</link>
      <description>&lt;P&gt;Looking at the docs of proc freq, it seems an option exists preventing all printed output.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 10:12:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-freq-nlevels-prevent-print/m-p/857708#M338906</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2023-02-08T10:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: proc freq  nlevels -prevent print</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-freq-nlevels-prevent-print/m-p/857712#M338908</link>
      <description>&lt;P&gt;I looked and haven't seen the solution, this is the reason that I ask here&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 10:44:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-freq-nlevels-prevent-print/m-p/857712#M338908</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2023-02-08T10:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: proc freq  nlevels -prevent print</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-freq-nlevels-prevent-print/m-p/857713#M338909</link>
      <description>&lt;P&gt;If your print is going to HTML, try&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods html select none;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 08 Feb 2023 10:52:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-freq-nlevels-prevent-print/m-p/857713#M338909</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-02-08T10:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: proc freq  nlevels -prevent print</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-freq-nlevels-prevent-print/m-p/857716#M338911</link>
      <description>The print is going to "Results"  window.&lt;BR /&gt;May you show the full code?&lt;BR /&gt;I am trying to apply your answer but get error</description>
      <pubDate>Wed, 08 Feb 2023 10:55:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-freq-nlevels-prevent-print/m-p/857716#M338911</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2023-02-08T10:55:59Z</dc:date>
    </item>
    <item>
      <title>Re: proc freq  nlevels -prevent print</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-freq-nlevels-prevent-print/m-p/857719#M338912</link>
      <description>&lt;P&gt;The following table is displayed on&amp;nbsp; &lt;A href="https://documentation.sas.com/doc/de/pgmsascdc/9.4_3.5/procstat/procstat_freq_syntax01.htm" target="_blank"&gt;https://documentation.sas.com/doc/de/pgmsascdc/9.4_3.5/procstat/procstat_freq_syntax01.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="proc_freq_options.png" style="width: 732px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/80204i7D0F2EC997E2B869/image-size/large?v=v2&amp;amp;px=999" role="button" title="proc_freq_options.png" alt="proc_freq_options.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 11:06:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-freq-nlevels-prevent-print/m-p/857719#M338912</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2023-02-08T11:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: proc freq  nlevels -prevent print</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-freq-nlevels-prevent-print/m-p/857732#M338920</link>
      <description>&lt;P&gt;Is it not HTML in the results window? Have you opened some other destination for output?&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/159549"&gt;@Ronein&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;I am trying to apply your answer but get error&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You have been in the forum for many years now. You should know that when you get an error, you should show us _____________&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please show that to us. Don't make us ask, just do it every single time.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 12:36:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-freq-nlevels-prevent-print/m-p/857732#M338920</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-02-08T12:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: proc freq  nlevels -prevent print</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-freq-nlevels-prevent-print/m-p/857780#M338939</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159549"&gt;@Ronein&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;I want to create a data set called nlev_all that contain formation of&amp;nbsp; number of missing observations.&lt;/P&gt;
&lt;P&gt;The data set was created and it is 100% fine.&lt;/P&gt;
&lt;P&gt;The problem is that I don't want to print it.&lt;/P&gt;
&lt;P&gt;What is the way to prevent print of data set nlev_all?&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;ods output nlevels=work.nlev_all;&lt;BR /&gt;proc freq data=sashelp.shoes nlevels;&lt;BR /&gt;tables _all_ /noprint;&lt;BR /&gt;run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I am afraid that anything that&amp;nbsp; is suppressed in the ODS results will not populate a data set created with ODS OUTPUT. The ODS output uses only information sent to an ods destination. If you do not want something to appear in a report document then create the data set outside of the ODS sandwich that defines the start/end of the output document and then use the data set created as needed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Dummy code example:&lt;/P&gt;
&lt;PRE&gt;ods output nlevels=work.nlev_all;
proc freq data=sashelp.shoes nlevels;
tables _all_/noprint;
run;


ods rtf file='&amp;lt;path to report file&amp;gt;\reportdocumentname.rtf';

proc print work.nlev_all &amp;lt;print options&amp;gt;
run;

ods rtf close;&lt;/PRE&gt;</description>
      <pubDate>Wed, 08 Feb 2023 16:10:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-freq-nlevels-prevent-print/m-p/857780#M338939</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-02-08T16:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: proc freq  nlevels -prevent print</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-freq-nlevels-prevent-print/m-p/857781#M338940</link>
      <description>&lt;P&gt;You have to tell PROC FREQ to write something in order to ODS OUTPUT to have something to write to the dataset.&lt;/P&gt;
&lt;P&gt;So you just need to suppress any other active ODS destinations from displaying the output also.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use ODS SELECT statements.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods select none;
ods output nlevels=nlevels;
proc freq data=sashelp.class nlevels;
tables _all_ / noprint;
run;
ods select all;
proc print data=nlevels;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 16:15:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-freq-nlevels-prevent-print/m-p/857781#M338940</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-02-08T16:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: proc freq  nlevels -prevent print</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-freq-nlevels-prevent-print/m-p/857786#M338942</link>
      <description>&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2015/05/26/suppress-ods.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2015/05/26/suppress-ods.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods select none;
ods output nlevels=work.nlev_all;
proc freq data=sashelp.shoes nlevels;
tables _all_ /noprint;
run;
ods select all;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159549"&gt;@Ronein&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;I want to create a data set called nlev_all that contain formation of&amp;nbsp; number of missing observations.&lt;/P&gt;
&lt;P&gt;The data set was created and it is 100% fine.&lt;/P&gt;
&lt;P&gt;The problem is that I don't want to print it.&lt;/P&gt;
&lt;P&gt;What is the way to prevent print of data set nlev_all?&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;ods output nlevels=work.nlev_all;&lt;BR /&gt;proc freq data=sashelp.shoes nlevels;&lt;BR /&gt;tables _all_ /noprint;&lt;BR /&gt;run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 16:34:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-freq-nlevels-prevent-print/m-p/857786#M338942</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-02-08T16:34:09Z</dc:date>
    </item>
    <item>
      <title>Re: proc freq  nlevels -prevent print</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-freq-nlevels-prevent-print/m-p/857935#M338982</link>
      <description>&lt;P&gt;This is not the answer since NOPRINT option prevent the print of the frequency table but don't prevent the print of NLEVELS table&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 05:18:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-freq-nlevels-prevent-print/m-p/857935#M338982</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2023-02-09T05:18:56Z</dc:date>
    </item>
  </channel>
</rss>

