<?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 get 0 in out put in SAS Health and Life Sciences</title>
    <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/how-to-get-0-in-out-put/m-p/26538#M1087</link>
    <description>Hi any one can tell me the following problem.&lt;BR /&gt;
I have dataset name called xx,having variable name called x, x contains thefollowing data:&lt;BR /&gt;
2&lt;BR /&gt;
3 &lt;BR /&gt;
5&lt;BR /&gt;
&lt;BR /&gt;
Now i want to run freq on xx.&lt;BR /&gt;
&lt;BR /&gt;
proc freq data=xx;&lt;BR /&gt;
tables x/out=ss;&lt;BR /&gt;
where x=4;&lt;BR /&gt;
run;&lt;BR /&gt;
now i want to get output data set ss as count=0 percent=0% to get this what option i should use.&lt;BR /&gt;
&lt;BR /&gt;
thanks and regards.&lt;BR /&gt;
ram.</description>
    <pubDate>Thu, 19 Jun 2008 10:06:46 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2008-06-19T10:06:46Z</dc:date>
    <item>
      <title>how to get 0 in out put</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/how-to-get-0-in-out-put/m-p/26538#M1087</link>
      <description>Hi any one can tell me the following problem.&lt;BR /&gt;
I have dataset name called xx,having variable name called x, x contains thefollowing data:&lt;BR /&gt;
2&lt;BR /&gt;
3 &lt;BR /&gt;
5&lt;BR /&gt;
&lt;BR /&gt;
Now i want to run freq on xx.&lt;BR /&gt;
&lt;BR /&gt;
proc freq data=xx;&lt;BR /&gt;
tables x/out=ss;&lt;BR /&gt;
where x=4;&lt;BR /&gt;
run;&lt;BR /&gt;
now i want to get output data set ss as count=0 percent=0% to get this what option i should use.&lt;BR /&gt;
&lt;BR /&gt;
thanks and regards.&lt;BR /&gt;
ram.</description>
      <pubDate>Thu, 19 Jun 2008 10:06:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/how-to-get-0-in-out-put/m-p/26538#M1087</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-06-19T10:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: how to get 0 in out put</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/how-to-get-0-in-out-put/m-p/26539#M1088</link>
      <description>You could take advantage of features of PROC SUMMARY that allow you to manufacture data.  Also the ZEROS option on the WEIGHT statement in PROC FREQ.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
 data test;&lt;BR /&gt;
    input x @@;&lt;BR /&gt;
    cards;&lt;BR /&gt;
 2 3 5&lt;BR /&gt;
 ;;;;&lt;BR /&gt;
    run;&lt;BR /&gt;
 proc format;&lt;BR /&gt;
    value fx 1='1' 2='2' 3='3' 4='4' 5='5';&lt;BR /&gt;
    run;&lt;BR /&gt;
 proc summary nway completetypes;&lt;BR /&gt;
    class x / preloadfmt;&lt;BR /&gt;
    format x fx.;&lt;BR /&gt;
    output out=work.full;&lt;BR /&gt;
    run;&lt;BR /&gt;
 proc freq data=full;&lt;BR /&gt;
    tables x / out=ss(where=(x eq 4));&lt;BR /&gt;
    weight _freq_ / zeros;&lt;BR /&gt;
    run;&lt;BR /&gt;
 proc print;&lt;BR /&gt;
    run;</description>
      <pubDate>Tue, 22 Jul 2008 21:02:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/how-to-get-0-in-out-put/m-p/26539#M1088</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2008-07-22T21:02:31Z</dc:date>
    </item>
  </channel>
</rss>

