<?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: Empty Dataset from Proc Freq in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Empty-Dataset-from-Proc-Freq/m-p/2889#M1286</link>
    <description>Maybe something interesting in that little program :&lt;BR /&gt;
&lt;BR /&gt;
DATA work.test (DROP = id) ;&lt;BR /&gt;
	DO id = 1 TO 10 ;&lt;BR /&gt;
		allMiss = . ;&lt;BR /&gt;
		allNMiss = MOD(id,3) ;&lt;BR /&gt;
		IF RANUNI(0)&amp;lt;.3 THEN partMiss = . ;&lt;BR /&gt;
		ELSE		 partMiss = id ;&lt;BR /&gt;
		OUTPUT ;&lt;BR /&gt;
	END ;&lt;BR /&gt;
RUN ;&lt;BR /&gt;
ODS EXCLUDE ALL ;&lt;BR /&gt;
PROC TABULATE DATA = work.test OUT = work.frequencies ;&lt;BR /&gt;
	CLASS allMiss allNMiss partMiss /</description>
    <pubDate>Tue, 24 Apr 2007 12:33:40 GMT</pubDate>
    <dc:creator>Olivier</dc:creator>
    <dc:date>2007-04-24T12:33:40Z</dc:date>
    <item>
      <title>Empty Dataset from Proc Freq</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Empty-Dataset-from-Proc-Freq/m-p/2887#M1284</link>
      <description>Hi all,&lt;BR /&gt;
&lt;BR /&gt;
I am using Proc Freq for frequency count and I have different variables in a dataset for which I count frequency and then stack all the dataset  created from Proc Freq result to create final dataset from which I can generate table using Proc Report. Sometimes some of the variables have no frequency count and I get empty dataset but I still want that to be displayed as 0 in final table. Proc Freq gives empty dataset if the frequency count is 0. What can I do in this case? Right now, I am doing hard coding using Proc Sql to insert a row which shows 0 as frequency count for that variable. I think there should be alternate for this. &lt;BR /&gt;
&lt;BR /&gt;
Jigar.</description>
      <pubDate>Mon, 23 Apr 2007 14:12:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Empty-Dataset-from-Proc-Freq/m-p/2887#M1284</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-04-23T14:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: Empty Dataset from Proc Freq</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Empty-Dataset-from-Proc-Freq/m-p/2888#M1285</link>
      <description>If I understand well, you want a line even if your variable is only made of missing values.&lt;BR /&gt;
Maybe just adding a MISSING option to the TABLE would fix your problem.&lt;BR /&gt;
&lt;BR /&gt;
Olivier</description>
      <pubDate>Tue, 24 Apr 2007 12:33:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Empty-Dataset-from-Proc-Freq/m-p/2888#M1285</guid>
      <dc:creator>Olivier</dc:creator>
      <dc:date>2007-04-24T12:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: Empty Dataset from Proc Freq</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Empty-Dataset-from-Proc-Freq/m-p/2889#M1286</link>
      <description>Maybe something interesting in that little program :&lt;BR /&gt;
&lt;BR /&gt;
DATA work.test (DROP = id) ;&lt;BR /&gt;
	DO id = 1 TO 10 ;&lt;BR /&gt;
		allMiss = . ;&lt;BR /&gt;
		allNMiss = MOD(id,3) ;&lt;BR /&gt;
		IF RANUNI(0)&amp;lt;.3 THEN partMiss = . ;&lt;BR /&gt;
		ELSE		 partMiss = id ;&lt;BR /&gt;
		OUTPUT ;&lt;BR /&gt;
	END ;&lt;BR /&gt;
RUN ;&lt;BR /&gt;
ODS EXCLUDE ALL ;&lt;BR /&gt;
PROC TABULATE DATA = work.test OUT = work.frequencies ;&lt;BR /&gt;
	CLASS allMiss allNMiss partMiss /</description>
      <pubDate>Tue, 24 Apr 2007 12:33:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Empty-Dataset-from-Proc-Freq/m-p/2889#M1286</guid>
      <dc:creator>Olivier</dc:creator>
      <dc:date>2007-04-24T12:33:40Z</dc:date>
    </item>
    <item>
      <title>Re: Empty Dataset from Proc Freq</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Empty-Dataset-from-Proc-Freq/m-p/2890#M1287</link>
      <description>MISSING ;&lt;BR /&gt;
	TABLE allMiss allNMiss partMiss ;&lt;BR /&gt;
RUN ;&lt;BR /&gt;
ODS SELECT ALL ;&lt;BR /&gt;
DATA work.frequencies (KEEP = varName value N) ;&lt;BR /&gt;
	SET work.frequencies ;&lt;BR /&gt;
	ARRAY values allMiss allNMiss partMiss ;&lt;BR /&gt;
	i = INDEX(_type_, '1');&lt;BR /&gt;
	value = values(i) ;&lt;BR /&gt;
	varname = VNAME(values(i)) ;&lt;BR /&gt;
RUN ;</description>
      <pubDate>Tue, 24 Apr 2007 12:39:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Empty-Dataset-from-Proc-Freq/m-p/2890#M1287</guid>
      <dc:creator>Olivier</dc:creator>
      <dc:date>2007-04-24T12:39:20Z</dc:date>
    </item>
  </channel>
</rss>

