<?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 to capture all categories in PROC FREQ in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-capture-all-categories-in-PROC-FREQ/m-p/626930#M184973</link>
    <description>&lt;P&gt;Good suggestion - I switched over to PROC TABULATE and added PRELOADFMT - looks good!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Mon, 24 Feb 2020 17:40:46 GMT</pubDate>
    <dc:creator>GRP_Canada</dc:creator>
    <dc:date>2020-02-24T17:40:46Z</dc:date>
    <item>
      <title>How to capture all categories in PROC FREQ</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-capture-all-categories-in-PROC-FREQ/m-p/626894#M184956</link>
      <description>&lt;P&gt;Hi...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been using PROC FREQ as part of data validation (SAS EG7).&amp;nbsp; However, as samples of all my variable splits are not always present my output will typically have lines omitted.&amp;nbsp; As a result, I have to manually adjust in Excel to capture any missing outcomes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking for a solution which will show ALL of the variable outcomes regardless if there was data present or not&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;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="1"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="1"&gt;freq&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="1"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;= temp_sas;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="1"&gt;table&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt; risk_calc * &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="1"&gt;score&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt; /&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="1"&gt;nopercent&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="1"&gt;nocol&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="1"&gt;nocum&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="1"&gt;norow&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="1"&gt;missing&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="1"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The full list of outcomes for the variables&amp;nbsp;should be:&lt;/P&gt;&lt;P&gt;- risk_calc (which is derived based on the product, length of time as customer, scores, etc..)&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080" face="Courier New" size="1"&gt;'A.1EMN1'&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="1"&gt;'A.2EMN2'&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="1"&gt;'A.3EMN3'&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="1"&gt;'A.4EYN1'&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="1"&gt;'A.5EYN2'&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="1"&gt;'A.6EYN3'&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="1"&gt;'A.7ENN3'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;- score:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080" face="Courier New" size="1"&gt;'000-164'&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="1"&gt;'165-169'&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="1"&gt;'170-194'&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="1"&gt;'195-199'&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="1"&gt;'200-204'&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="1"&gt;'205-209'&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="1"&gt;'210-219'&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="1"&gt;'220-224'&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="1"&gt;'225-229'&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080" face="Courier New" size="1"&gt;'230-234'&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="1"&gt;'235-239'&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="1"&gt;'240-244'&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="1"&gt;'245-249'&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="1"&gt;'250-269'&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="1"&gt;'270+'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080" face="Courier New" size="1"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080" face="Courier New" size="1"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2020 16:26:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-capture-all-categories-in-PROC-FREQ/m-p/626894#M184956</guid>
      <dc:creator>GRP_Canada</dc:creator>
      <dc:date>2020-02-24T16:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to capture all categories in PROC FREQ</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-capture-all-categories-in-PROC-FREQ/m-p/626898#M184958</link>
      <description>&lt;P&gt;With PROC MEANS and PROC REPORT and PROC TABULATE, you can use the PRELOADFMT option. I don't know if it works with PROC FREQ. Here is an example using PROC MEANS:&amp;nbsp;&lt;A href="https://documentation.sas.com/?docsetId=proc&amp;amp;docsetTarget=n1eseaucwkzo18n1nph31op5kkdt.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#n1eseaucwkzo18n1nph31op5kkdt"&gt;https://documentation.sas.com/?docsetId=proc&amp;amp;docsetTarget=n1eseaucwkzo18n1nph31op5kkdt.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#n1eseaucwkzo18n1nph31op5kkdt&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2020 16:36:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-capture-all-categories-in-PROC-FREQ/m-p/626898#M184958</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-02-24T16:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to capture all categories in PROC FREQ</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-capture-all-categories-in-PROC-FREQ/m-p/626930#M184973</link>
      <description>&lt;P&gt;Good suggestion - I switched over to PROC TABULATE and added PRELOADFMT - looks good!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2020 17:40:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-capture-all-categories-in-PROC-FREQ/m-p/626930#M184973</guid>
      <dc:creator>GRP_Canada</dc:creator>
      <dc:date>2020-02-24T17:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to capture all categories in PROC FREQ</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-capture-all-categories-in-PROC-FREQ/m-p/627100#M185030</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data levels;
input sex $;
cards;
F
M
N
;

data have;
 set sashelp.class(in=ina) levels;
 w=ina;
run;
proc freq data=have;
table sex/norow nocol nocum nopercent missing missprint; 
weight w/zeros;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 25 Feb 2020 05:15:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-capture-all-categories-in-PROC-FREQ/m-p/627100#M185030</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2020-02-25T05:15:21Z</dc:date>
    </item>
  </channel>
</rss>

