<?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: crating output dataset using proc tabulate in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/crating-output-dataset-using-proc-tabulate/m-p/20894#M4364</link>
    <description>The problem is in your format statement; you are applying the missing/non-missing to everything (including the variable "n").  Change it to &lt;BR /&gt;
&lt;BR /&gt;
format areacode msa missfmt. countynm zip_class $missfmt.;&lt;BR /&gt;
&lt;BR /&gt;
and the sample dataset contents look right.&lt;BR /&gt;
&lt;BR /&gt;
Doc Muhlbaier&lt;BR /&gt;
Duke</description>
    <pubDate>Mon, 20 Apr 2009 13:05:22 GMT</pubDate>
    <dc:creator>Doc_Duke</dc:creator>
    <dc:date>2009-04-20T13:05:22Z</dc:date>
    <item>
      <title>crating output dataset using proc tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/crating-output-dataset-using-proc-tabulate/m-p/20893#M4363</link>
      <description>data ZIPcode;&lt;BR /&gt;
     set sashelp.ZIPcode;&lt;BR /&gt;
     if msa=0 then msa=.;&lt;BR /&gt;
     label ZIP_class=" " MSA=" " CountyNm=" " AreaCode=" ";&lt;BR /&gt;
   run;&lt;BR /&gt;
 &lt;BR /&gt;
&lt;BR /&gt;
  * One PROC step can handle all variables ;&lt;BR /&gt;
  proc format;&lt;BR /&gt;
     value missfmt&lt;BR /&gt;
          .="Num Missing"&lt;BR /&gt;
       other="Num Non-Missing";&lt;BR /&gt;
&lt;BR /&gt;
    value $missfmt&lt;BR /&gt;
         " "="Char Missing"&lt;BR /&gt;
       other="Char Non-Missing";&lt;BR /&gt;
&lt;BR /&gt;
   run;&lt;BR /&gt;
 &lt;BR /&gt;
 &lt;BR /&gt;
     proc tabulate data=ZIPCode Missing format=comma8. out=sample;&lt;BR /&gt;
     class CountyNm AreaCode MSA ZIP_Class / preloadfmt;&lt;BR /&gt;
     tables CountyNm AreaCode MSA ZIP_Class / printmiss misstext="0";&lt;BR /&gt;
     format _numeric_ missfmt. _character_ $missfmt.;&lt;BR /&gt;
     keylabel n="Count";&lt;BR /&gt;
     title1 "Missing and Non-Missing Counts for each Variable";&lt;BR /&gt;
   run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Hi,&lt;BR /&gt;
&lt;BR /&gt;
any one can help me&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
here i am using proc tabulate for finding missing and non missing count, but soma problem with the output data set. because of i have crated user defined formats.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Thanks and Regards&lt;BR /&gt;
Saiaram.</description>
      <pubDate>Mon, 20 Apr 2009 10:45:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/crating-output-dataset-using-proc-tabulate/m-p/20893#M4363</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-04-20T10:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: crating output dataset using proc tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/crating-output-dataset-using-proc-tabulate/m-p/20894#M4364</link>
      <description>The problem is in your format statement; you are applying the missing/non-missing to everything (including the variable "n").  Change it to &lt;BR /&gt;
&lt;BR /&gt;
format areacode msa missfmt. countynm zip_class $missfmt.;&lt;BR /&gt;
&lt;BR /&gt;
and the sample dataset contents look right.&lt;BR /&gt;
&lt;BR /&gt;
Doc Muhlbaier&lt;BR /&gt;
Duke</description>
      <pubDate>Mon, 20 Apr 2009 13:05:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/crating-output-dataset-using-proc-tabulate/m-p/20894#M4364</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2009-04-20T13:05:22Z</dc:date>
    </item>
  </channel>
</rss>

