<?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 not able to sum up in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-report-not-able-to-sum-up/m-p/428300#M105740</link>
    <description>&lt;P&gt;Also check this two statements:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;  define bnrind / display style={just=left cellwidth=2.1cm} "Baseline Reference Range Indicator";
  define A2N /group order=data style={just=left cellwidth=2.1cm} "Baseline Reference Range Indicator";
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;you only need the A2N, as this us used in the COLUMN statement&lt;/P&gt;</description>
    <pubDate>Wed, 17 Jan 2018 09:08:17 GMT</pubDate>
    <dc:creator>BrunoMueller</dc:creator>
    <dc:date>2018-01-17T09:08:17Z</dc:date>
    <item>
      <title>proc report not able to sum up</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-not-able-to-sum-up/m-p/428291#M105737</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am summing up *N* in my define statement but it does not work. attached the code and sample data.&lt;/P&gt;
&lt;PRE&gt;options missing = "" ls=200;
proc report data = DESC2_CAT030 nowd split = "¤" headline missing contents = "" out=DESC2_CAT030_rpt;
column param=BV actarm=AV timevar = TV filler bnrind=A2N ('  ' count=BN) anrind, ( count pctc ) dummy ;
define param / group style(header)={just=left cellwidth=4.5cm} style(column)=IdColIndent2{asis=on} "" ;
define actarm / group style(header)={just=left cellwidth=2cm} style(column)=IdColIndent2{asis=on} "Treatment Group";
define timevar /group style={just=right cellwidth=2cm} "Week" ;
define bnrind / display style={just=left cellwidth=2.1cm} "Baseline Reference Range Indicator";
define A2N /group order=data style={just=left cellwidth=2.1cm} "Baseline Reference Range Indicator";
define filler /display style={just=left cellwidth=0.2cm} "";
define anrind /across order=data style={just=left} "Analysis Reference Range Indicator";
define dummy /computed noprint;

define BN / analysis sum "    N" style={just=right cellwidth=1.47499999999998cm} ;
define count /analysis sum style={just=right cellwidth=1.47499999999998cm} "n";
define pctc /display style={just=right cellwidth=1.96666666666664cm} "(%)";
define BV /group style={just=right cellwidth=4.5cm} "";
define TV /group style={just=right cellwidth=2cm} "Week";
define AV /group style={just=right cellwidth=2cm} "Treatment Group";

compute before;
line @1 ' ';
Total=BN;
endcomp;

compute after timevar;
TV=' ';
AV=' ';
BV=' ';
A2N='N';
line ' ';
endcomp;

break after timevar / summarize;

run;
&lt;/PRE&gt;
&lt;P&gt;while running the report i get multiple observations of N.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2018 08:48:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-not-able-to-sum-up/m-p/428291#M105737</guid>
      <dc:creator>vraj1</dc:creator>
      <dc:date>2018-01-17T08:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: proc report not able to sum up</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-not-able-to-sum-up/m-p/428298#M105738</link>
      <description>&lt;P&gt;You still have a DISPLAY variable, so this is why you get individual lines. Check the log for "Groups are not created"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Define the filler var as&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;define filler /group style={just=left cellwidth=0.2cm} "";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and you should be ok&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2018 09:04:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-not-able-to-sum-up/m-p/428298#M105738</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2018-01-17T09:04:33Z</dc:date>
    </item>
    <item>
      <title>Re: proc report not able to sum up</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-not-able-to-sum-up/m-p/428299#M105739</link>
      <description>&lt;P&gt;I am sure we have been over these things before.&amp;nbsp; Do calculations in a datastep before the proc report, whilst report can do some basic stuff its really not a data processing procedure.&amp;nbsp; There are a lot of oddities in what you have posted here, so I won't bother looking at it.&amp;nbsp; What I would suggest is your post, in a datastep using the code window (not attached files), a small sample of test data (I would avoid using actual data).&amp;nbsp; Then show what it is you would like to see at the end, I suspect a simple transpose procedure and then datastep would get what you want but as I don't the output I can't do it.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2018 09:05:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-not-able-to-sum-up/m-p/428299#M105739</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-01-17T09:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: proc report not able to sum up</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-not-able-to-sum-up/m-p/428300#M105740</link>
      <description>&lt;P&gt;Also check this two statements:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;  define bnrind / display style={just=left cellwidth=2.1cm} "Baseline Reference Range Indicator";
  define A2N /group order=data style={just=left cellwidth=2.1cm} "Baseline Reference Range Indicator";
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;you only need the A2N, as this us used in the COLUMN statement&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2018 09:08:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-not-able-to-sum-up/m-p/428300#M105740</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2018-01-17T09:08:17Z</dc:date>
    </item>
  </channel>
</rss>

