<?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: PRELOADFMT in proc freq or counting percentage in proc summary in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PRELOADFMT-in-proc-freq-or-counting-percentage-in-proc-summary/m-p/463703#M118182</link>
    <description>&lt;P&gt;It would be a lot easier to understand your need if you provided a data sample and an expected result.&lt;/P&gt;
&lt;P&gt;I presume you saw &lt;A href="https://communities.sas.com/t5/SAS-Procedures/PROC-FREQ-Include-Zero-Counts/td-p/325505" target="_self"&gt;this&lt;/A&gt;? What's missing there?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 21 May 2018 05:06:06 GMT</pubDate>
    <dc:creator>ChrisNZ</dc:creator>
    <dc:date>2018-05-21T05:06:06Z</dc:date>
    <item>
      <title>PRELOADFMT in proc freq or counting percentage in proc summary</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PRELOADFMT-in-proc-freq-or-counting-percentage-in-proc-summary/m-p/463497#M118090</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to get some missing data for the whole class by proc freq.&lt;/P&gt;&lt;P&gt;It can easily be achived by proc summary as below. for example if&amp;nbsp;pregnant='Y' is complety missing , it will still produce the desire result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc summary data= test completetypes nway ;&lt;BR /&gt;&amp;nbsp; by allgrp nbyvar;&lt;BR /&gt;&amp;nbsp; class&amp;nbsp;pregnent / preloadfmt;&lt;BR /&gt;&amp;nbsp; output out=test1(drop=_type_) / autoname;&lt;BR /&gt;&amp;nbsp; format&amp;nbsp;pregnent&amp;nbsp; ynf. ;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to know the percent as well which is possible in proc freq as below but it does not give me the 0 count for pregnent='Y' even i tried sparse option too.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc freq data= test1 noprint;&lt;BR /&gt;&amp;nbsp;by allgrp nbyvar;&lt;BR /&gt;&amp;nbsp;table pregnent/&amp;nbsp; out=test2;&lt;BR /&gt;&amp;nbsp;format &amp;amp;var1. ynf. ;&lt;BR /&gt;run;&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 way i can achive percent in proc summary or missing count in proc freq?&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 19 May 2018 11:09:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PRELOADFMT-in-proc-freq-or-counting-percentage-in-proc-summary/m-p/463497#M118090</guid>
      <dc:creator>hira</dc:creator>
      <dc:date>2018-05-19T11:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: PRELOADFMT in proc freq or counting percentage in proc summary</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PRELOADFMT-in-proc-freq-or-counting-percentage-in-proc-summary/m-p/463703#M118182</link>
      <description>&lt;P&gt;It would be a lot easier to understand your need if you provided a data sample and an expected result.&lt;/P&gt;
&lt;P&gt;I presume you saw &lt;A href="https://communities.sas.com/t5/SAS-Procedures/PROC-FREQ-Include-Zero-Counts/td-p/325505" target="_self"&gt;this&lt;/A&gt;? What's missing there?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 May 2018 05:06:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PRELOADFMT-in-proc-freq-or-counting-percentage-in-proc-summary/m-p/463703#M118182</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-05-21T05:06:06Z</dc:date>
    </item>
  </channel>
</rss>

