| Date: | Tue, 27 Sep 2011 07:49:12 -0500 |
| Reply-To: | Joe Matise <snoopy369@GMAIL.COM> |
| Sender: | "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> |
| From: | Joe Matise <snoopy369@GMAIL.COM> |
| Subject: | Re: sas help |
|
| In-Reply-To: | <201109271143.p8RAqLGv006392@waikiki.cc.uga.edu> |
| Content-Type: | text/plain; charset=ISO-8859-1 |
|---|
If you're using PROC REPORT then it's not hard - just create summary rows
using RBREAK. See http://www2.sas.com/proceedings/sugi27/p120-27.pdf for
more precise details.
-Joe
On Tue, Sep 27, 2011 at 6:43 AM, SUBSCRIBE SAS-L Anonymous <
mujamailkaro2010@gmail.com> wrote:
> region sex years_end_0or5 age23to62
> a F 5939 29646
> a M 236024 668840
> b F 5320 28941
> b M 5853 29356
> c F 5702 29516
> c M 6451 29538
>
> Hi I have the above database.. I want to inclue 1 line for each region like
>
> region sex years_end_0or5 age23to62
> a F 5939 29646
> a M 236024 668840
> a total sum(5939+236024) sum(29646+668840)
>
> b F 5320 28941
> b M 5853 29356
> b total sum(5320+5853) sum(28941+29356)
> c F 5702 29516
> c M 6451 29538
> c total sum(5702+6451) sum(29516+29538)
>
> how I can include the rows
>
|