<?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 Using the N statistic in PROC REPORT. in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Using-the-N-statistic-in-PROC-REPORT/m-p/5522#M2210</link>
    <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I am using the N statistic in one of my requirement. &lt;BR /&gt;
&lt;BR /&gt;
My i.p files look like the one below : &lt;BR /&gt;
&lt;BR /&gt;
&lt;U&gt;&lt;B&gt;ID	Name&lt;/B&gt;&lt;/U&gt;&lt;BR /&gt;
1111	Murali&lt;BR /&gt;
2222	Nick&lt;BR /&gt;
&lt;BR /&gt;
&lt;U&gt;&lt;B&gt;ID             DESCRIPTION&lt;/B&gt;&lt;/U&gt;&lt;BR /&gt;
1111    Description 1 &lt;BR /&gt;
2222    Description 2&lt;BR /&gt;
&lt;BR /&gt;
The final report which I try to bring out of PROC REPORT looks like this : &lt;BR /&gt;
&lt;BR /&gt;
&lt;U&gt;&lt;B&gt;ID           DESCRIPTION         N&lt;/B&gt;&lt;/U&gt;&lt;BR /&gt;
1111   DESCRIPTION 1          2&lt;BR /&gt;
2222   DESCRIPTION 2          1&lt;BR /&gt;
&lt;BR /&gt;
Column N indicates, the number of records for each ID. &lt;BR /&gt;
&lt;BR /&gt;
The PROC REPORT i coded was : &lt;BR /&gt;
&lt;BR /&gt;
PROC REPORT DATA=MERGED NOCENTER NOWD HEADLINE HEADSKIP MISSING;  &lt;BR /&gt;
  COLUMN ID NAME N;                                   &lt;BR /&gt;
  DEFINE SDC     / GROUP        FORMAT=£4.  'ID';                &lt;BR /&gt;
  DEFINE SDCDESC / GROUP        FORMAT=£40. 'NAME';&lt;BR /&gt;
&lt;BR /&gt;
Everything works fine. But the third column heading is coming up as 'N'. I want it to be TOTAL. I am not sure how I can  change it. &lt;BR /&gt;
&lt;BR /&gt;
I want the report to be : &lt;BR /&gt;
&lt;BR /&gt;
ID           DESCRIPTION         &lt;U&gt;&lt;B&gt;TOTAL&lt;/B&gt;&lt;/U&gt;&lt;BR /&gt;
1111   DESCRIPTION 1          2&lt;BR /&gt;
2222   DESCRIPTION 2          1&lt;BR /&gt;
&lt;BR /&gt;
I would be very very happy if someone can help in this. &lt;BR /&gt;
&lt;BR /&gt;
Thanks....</description>
    <pubDate>Thu, 15 Nov 2007 08:26:58 GMT</pubDate>
    <dc:creator>m_u_r_a_l_i</dc:creator>
    <dc:date>2007-11-15T08:26:58Z</dc:date>
    <item>
      <title>Using the N statistic in PROC REPORT.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Using-the-N-statistic-in-PROC-REPORT/m-p/5522#M2210</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I am using the N statistic in one of my requirement. &lt;BR /&gt;
&lt;BR /&gt;
My i.p files look like the one below : &lt;BR /&gt;
&lt;BR /&gt;
&lt;U&gt;&lt;B&gt;ID	Name&lt;/B&gt;&lt;/U&gt;&lt;BR /&gt;
1111	Murali&lt;BR /&gt;
2222	Nick&lt;BR /&gt;
&lt;BR /&gt;
&lt;U&gt;&lt;B&gt;ID             DESCRIPTION&lt;/B&gt;&lt;/U&gt;&lt;BR /&gt;
1111    Description 1 &lt;BR /&gt;
2222    Description 2&lt;BR /&gt;
&lt;BR /&gt;
The final report which I try to bring out of PROC REPORT looks like this : &lt;BR /&gt;
&lt;BR /&gt;
&lt;U&gt;&lt;B&gt;ID           DESCRIPTION         N&lt;/B&gt;&lt;/U&gt;&lt;BR /&gt;
1111   DESCRIPTION 1          2&lt;BR /&gt;
2222   DESCRIPTION 2          1&lt;BR /&gt;
&lt;BR /&gt;
Column N indicates, the number of records for each ID. &lt;BR /&gt;
&lt;BR /&gt;
The PROC REPORT i coded was : &lt;BR /&gt;
&lt;BR /&gt;
PROC REPORT DATA=MERGED NOCENTER NOWD HEADLINE HEADSKIP MISSING;  &lt;BR /&gt;
  COLUMN ID NAME N;                                   &lt;BR /&gt;
  DEFINE SDC     / GROUP        FORMAT=£4.  'ID';                &lt;BR /&gt;
  DEFINE SDCDESC / GROUP        FORMAT=£40. 'NAME';&lt;BR /&gt;
&lt;BR /&gt;
Everything works fine. But the third column heading is coming up as 'N'. I want it to be TOTAL. I am not sure how I can  change it. &lt;BR /&gt;
&lt;BR /&gt;
I want the report to be : &lt;BR /&gt;
&lt;BR /&gt;
ID           DESCRIPTION         &lt;U&gt;&lt;B&gt;TOTAL&lt;/B&gt;&lt;/U&gt;&lt;BR /&gt;
1111   DESCRIPTION 1          2&lt;BR /&gt;
2222   DESCRIPTION 2          1&lt;BR /&gt;
&lt;BR /&gt;
I would be very very happy if someone can help in this. &lt;BR /&gt;
&lt;BR /&gt;
Thanks....</description>
      <pubDate>Thu, 15 Nov 2007 08:26:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Using-the-N-statistic-in-PROC-REPORT/m-p/5522#M2210</guid>
      <dc:creator>m_u_r_a_l_i</dc:creator>
      <dc:date>2007-11-15T08:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: Using the N statistic in PROC REPORT.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Using-the-N-statistic-in-PROC-REPORT/m-p/5523#M2211</link>
      <description>Your column definition :&lt;BR /&gt;
DEFINE SDCDESC / GROUP FORMAT=£40. 'NAME'&lt;BR /&gt;
will name the column with a label of "NAME", not "DESCRIPTION".  Be careful when copying or creating dummy code that you don't lose the sense.&lt;BR /&gt;
&lt;BR /&gt;
The quoted value will label the column, and providing a definition for the N column will give you the column label you require.&lt;BR /&gt;
&lt;BR /&gt;
Kind regards&lt;BR /&gt;
&lt;BR /&gt;
David</description>
      <pubDate>Thu, 15 Nov 2007 09:15:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Using-the-N-statistic-in-PROC-REPORT/m-p/5523#M2211</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-11-15T09:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: Using the N statistic in PROC REPORT.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Using-the-N-statistic-in-PROC-REPORT/m-p/5524#M2212</link>
      <description>Hey, &lt;BR /&gt;
&lt;BR /&gt;
Thanks Daniel. Please find the correct one below : &lt;BR /&gt;
PROC REPORT DATA=MERGED NOCENTER NOWD HEADLINE HEADSKIP MISSING; &lt;BR /&gt;
COLUMN ID NAME N; &lt;BR /&gt;
DEFINE ID / GROUP FORMAT=£4. 'ID'; &lt;BR /&gt;
DEFINE NAME / GROUP FORMAT=£40. 'NAME';&lt;BR /&gt;
&lt;BR /&gt;
Now when I define, N, it says N is not a part of the MERGED dataset !  So it doesnt work if I define N.</description>
      <pubDate>Thu, 15 Nov 2007 09:22:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Using-the-N-statistic-in-PROC-REPORT/m-p/5524#M2212</guid>
      <dc:creator>m_u_r_a_l_i</dc:creator>
      <dc:date>2007-11-15T09:22:02Z</dc:date>
    </item>
    <item>
      <title>Re: Using the N statistic in PROC REPORT.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Using-the-N-statistic-in-PROC-REPORT/m-p/5525#M2213</link>
      <description>Sorryyyyy.&lt;BR /&gt;
&lt;BR /&gt;
It worked !</description>
      <pubDate>Thu, 15 Nov 2007 10:27:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Using-the-N-statistic-in-PROC-REPORT/m-p/5525#M2213</guid>
      <dc:creator>m_u_r_a_l_i</dc:creator>
      <dc:date>2007-11-15T10:27:16Z</dc:date>
    </item>
  </channel>
</rss>

