<?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: proc report name of SUM column in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-report-name-of-SUM-column/m-p/696907#M212953</link>
    <description>&lt;P&gt;Just count. How many items are in the COLUMN statement, and how many DEFINE statements do you have?&lt;/P&gt;
&lt;P&gt;See?&lt;/P&gt;</description>
    <pubDate>Thu, 05 Nov 2020 15:35:11 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2020-11-05T15:35:11Z</dc:date>
    <item>
      <title>proc report name of SUM column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-name-of-SUM-column/m-p/696883#M212945</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;I want that the name of the column of Sum of x will be&amp;nbsp;&amp;nbsp;&lt;CODE class=" language-sas"&gt;X in MPLN&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;Why I get name "SUM"?&lt;/P&gt;
&lt;P&gt;Why one row above I get name "&lt;CODE class=" language-sas"&gt;X in MPLN"?&lt;/CODE&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;input ID g X;
cards;
1 2 10
2 3 15
3 2 20
4 5 25
5 8 40
6 8 35
7 2 30
8 4 20
;
run;
proc report data=raw  nowd;
column g x,(n sum  pctn pctsum);
define g /group    style(column)=header;
define x/"X in MPLN" analysis sum;
define n/ 'Nr_Cust' f=comma28.;
define pctn / 'PCT Cust' f=percent9.2;
define pctsum/ 'PCT X' f=percent9.2;
rbreak after /summarize  style (summary)=Header;
compute after;
region='Total';
endcomp;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 05 Nov 2020 14:10:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-name-of-SUM-column/m-p/696883#M212945</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2020-11-05T14:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: proc report name of SUM column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-name-of-SUM-column/m-p/696886#M212948</link>
      <description>&lt;P&gt;Put the label where you want it:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report data=raw  nowd;
column g x,(n sum  pctn pctsum);
define g /group    style(column)=header;
define x/" " analysis sum;
define n/ 'Nr_Cust' f=comma28.;
define sum / "X in MPLN" f=comma28.;
define pctn / 'PCT Cust' f=percent9.2;
define pctsum/ 'PCT X' f=percent9.2;
rbreak after /summarize  style (summary)=Header;
compute after;
region='Total';
endcomp;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 05 Nov 2020 14:30:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-name-of-SUM-column/m-p/696886#M212948</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-11-05T14:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: proc report name of SUM column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-name-of-SUM-column/m-p/696892#M212951</link>
      <description>Thank you.&lt;BR /&gt;I don't  understand  why for sum x need 2 statements?:&lt;BR /&gt;Define x&lt;BR /&gt;And another statement  define sum</description>
      <pubDate>Thu, 05 Nov 2020 14:50:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-name-of-SUM-column/m-p/696892#M212951</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2020-11-05T14:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: proc report name of SUM column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-name-of-SUM-column/m-p/696907#M212953</link>
      <description>&lt;P&gt;Just count. How many items are in the COLUMN statement, and how many DEFINE statements do you have?&lt;/P&gt;
&lt;P&gt;See?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2020 15:35:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-name-of-SUM-column/m-p/696907#M212953</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-11-05T15:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: proc report name of SUM column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-name-of-SUM-column/m-p/697025#M212985</link>
      <description>I see that we have 4 statistics;&lt;BR /&gt;N sum pctn pctsum&lt;BR /&gt;For each statistics  we create define  statement.&lt;BR /&gt;And there is one more define statement  for x with analysis  sum. &lt;BR /&gt;My question bis why?&lt;BR /&gt;Why there are no also define statements for x with pctn&lt;BR /&gt;and for x with pctnsum?</description>
      <pubDate>Thu, 05 Nov 2020 22:36:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-name-of-SUM-column/m-p/697025#M212985</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2020-11-05T22:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: proc report name of SUM column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-name-of-SUM-column/m-p/697026#M212986</link>
      <description>I see 6 items in define:&lt;BR /&gt; n sum pctn pctsum g x&lt;BR /&gt;I see 6 define statements. &lt;BR /&gt;But can you explain why dor define x we need to put sum? &lt;BR /&gt;</description>
      <pubDate>Thu, 05 Nov 2020 22:39:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-name-of-SUM-column/m-p/697026#M212986</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2020-11-05T22:39:29Z</dc:date>
    </item>
    <item>
      <title>Re: proc report name of SUM column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-name-of-SUM-column/m-p/697056#M212995</link>
      <description>&lt;P&gt;When you omit a DEFINE statement for a column, SAS will use default parameters, in this case the name of the statistic as a label.&lt;/P&gt;
&lt;P&gt;And if you define a label for the spanning column, you force SAS to put in an extra line for that. The empty label prevents that.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2020 05:49:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-name-of-SUM-column/m-p/697056#M212995</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-11-06T05:49:25Z</dc:date>
    </item>
  </channel>
</rss>

