<?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: Report in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Report/m-p/26930#M4288</link>
    <description>Hi &lt;BR /&gt;
&lt;BR /&gt;
I created a count for each dataset by using this macros,&lt;BR /&gt;
&lt;BR /&gt;
%macro cnt_inv (tbl=, vr=, table=);&lt;BR /&gt;
PROC SQL;&lt;BR /&gt;
create table &amp;amp;tbl. as&lt;BR /&gt;
select count(*) as &amp;amp;vr. from &amp;amp;table.&lt;BR /&gt;
quit;&lt;BR /&gt;
%mend cnt_inv;&lt;BR /&gt;
&lt;BR /&gt;
%cnt_inv (tbl=var1, vr=prior, table=test1);&lt;BR /&gt;
%cnt_inv (tbl=var2, vr=worked,   table=test2);&lt;BR /&gt;
%cnt_inv (tbl=Var3, vr=new,    table=test3)&lt;BR /&gt;
%cnt_inv (tbl=var4, vr=crnt,  table=test4);</description>
    <pubDate>Thu, 10 Mar 2011 21:57:16 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2011-03-10T21:57:16Z</dc:date>
    <item>
      <title>Report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Report/m-p/26928#M4286</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I need to create a summary report with all counts.So I created a count for each dataset and together put it on the one dataset,but the output is not so exact if I use the below code,&lt;BR /&gt;
&lt;BR /&gt;
data summaryReport;&lt;BR /&gt;
set Var1 Var2 Var3 Var4 ;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
Var1	Var2	Var3	Var4&lt;BR /&gt;
38			&lt;BR /&gt;
	0		&lt;BR /&gt;
		0	&lt;BR /&gt;
			40&lt;BR /&gt;
&lt;BR /&gt;
I need an output as below,&lt;BR /&gt;
&lt;BR /&gt;
Var1	38&lt;BR /&gt;
Var2	0&lt;BR /&gt;
var3	0&lt;BR /&gt;
var4	40&lt;BR /&gt;
&lt;BR /&gt;
Please let me know.&lt;BR /&gt;
Thanks

Message was edited by: Raveenat</description>
      <pubDate>Thu, 10 Mar 2011 21:10:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Report/m-p/26928#M4286</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2011-03-10T21:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: Report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Report/m-p/26929#M4287</link>
      <description>How did you summarize and combine the previous output? You may be creating extra work with that approach.</description>
      <pubDate>Thu, 10 Mar 2011 21:45:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Report/m-p/26929#M4287</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2011-03-10T21:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: Report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Report/m-p/26930#M4288</link>
      <description>Hi &lt;BR /&gt;
&lt;BR /&gt;
I created a count for each dataset by using this macros,&lt;BR /&gt;
&lt;BR /&gt;
%macro cnt_inv (tbl=, vr=, table=);&lt;BR /&gt;
PROC SQL;&lt;BR /&gt;
create table &amp;amp;tbl. as&lt;BR /&gt;
select count(*) as &amp;amp;vr. from &amp;amp;table.&lt;BR /&gt;
quit;&lt;BR /&gt;
%mend cnt_inv;&lt;BR /&gt;
&lt;BR /&gt;
%cnt_inv (tbl=var1, vr=prior, table=test1);&lt;BR /&gt;
%cnt_inv (tbl=var2, vr=worked,   table=test2);&lt;BR /&gt;
%cnt_inv (tbl=Var3, vr=new,    table=test3)&lt;BR /&gt;
%cnt_inv (tbl=var4, vr=crnt,  table=test4);</description>
      <pubDate>Thu, 10 Mar 2011 21:57:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Report/m-p/26930#M4288</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2011-03-10T21:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: Report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Report/m-p/26931#M4289</link>
      <description>Emmmm.&lt;BR /&gt;
Maybe you will like dictionary table:&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
proc sql ;&lt;BR /&gt;
 create table summary as&lt;BR /&gt;
  select memname label='Table Name',nobs label='Number of Observations'&lt;BR /&gt;
   from dictionary.tables&lt;BR /&gt;
    where libname='SASHELP' and memname in ('CLASS' 'SHOES');&lt;BR /&gt;
quit;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ksharp</description>
      <pubDate>Fri, 11 Mar 2011 06:13:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Report/m-p/26931#M4289</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2011-03-11T06:13:53Z</dc:date>
    </item>
  </channel>
</rss>

