<?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 How to show response option if it is a '0' in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-show-response-option-if-it-is-a-0/m-p/154725#M262760</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have data from a survey and would like the response options which ended up having a 0 count to be shown in the tables I made in proc freq.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seems like a simple problem to fix, but i have yet to find a solution. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Mar 2014 18:55:49 GMT</pubDate>
    <dc:creator>GregBond</dc:creator>
    <dc:date>2014-03-24T18:55:49Z</dc:date>
    <item>
      <title>How to show response option if it is a '0'</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-show-response-option-if-it-is-a-0/m-p/154725#M262760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have data from a survey and would like the response options which ended up having a 0 count to be shown in the tables I made in proc freq.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seems like a simple problem to fix, but i have yet to find a solution. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Mar 2014 18:55:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-show-response-option-if-it-is-a-0/m-p/154725#M262760</guid>
      <dc:creator>GregBond</dc:creator>
      <dc:date>2014-03-24T18:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to show response option if it is a '0'</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-show-response-option-if-it-is-a-0/m-p/154726#M262761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If it appears in other fields you can try the sparse option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc freq data=have;&lt;/P&gt;&lt;P&gt;table question*answer/sparse;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it doesn't appear anywhere in your data you'll need to use proc tabulate or a different proc with the the preloadfmt option. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Mar 2014 19:18:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-show-response-option-if-it-is-a-0/m-p/154726#M262761</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-03-24T19:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to show response option if it is a '0'</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-show-response-option-if-it-is-a-0/m-p/154727#M262762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would recommend using 1) custom formats and 2) Proc Tabulate, Means or Report with the Preloadfmt option&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc format library=work;&lt;BR /&gt;value yndr&lt;BR /&gt;1='Yes'&lt;BR /&gt;2='No'&lt;BR /&gt;7="Don't Know"&lt;BR /&gt;9="Refused";&lt;BR /&gt;run;&lt;BR /&gt;data junk;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; do i = 1 to 5; x=1;output;end;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; do i = 1 to 3; x=2;output;end;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; do i = 1 to 4; x=7;output;end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc tabulate data=junk;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; class x / preloadfmt missing;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; format x yndr.;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; table x, n='Count'&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /printmiss misstext='0';&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The misstext to show the zero for a missing count, otherwise it will display your current default for missing values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Mar 2014 21:31:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-show-response-option-if-it-is-a-0/m-p/154727#M262762</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-03-24T21:31:55Z</dc:date>
    </item>
  </channel>
</rss>

