Help using Base SAS procedures

Adding one summary row at the bottom

Accepted Solution Solved
Reply
Frequent Contributor
Posts: 89
Accepted Solution

Adding one summary row at the bottom

This seems like an absurdly newbie question, but I've almost only worked in EG & DIS and avoided user written code.

Consider this very basic example code:

http://pastebin.com/AD5yKuA2

I want to add a single row at the bottom, which should simply display the sum of the 'amount' column. It should look like this:

deal_nocust_no
kid
amount
6546516556165165919819191961616151116210
6549815351651666519198984798765464656525
465198991854894951619898976861651651615
1988495856165199612316548635165767899915
55

Can someone please tell me how to add the final line? I figured I might simply use output belop=sum(belop), but that doesn't seem to work.


Accepted Solutions
Solution
‎10-08-2014 06:30 AM
Super User
Posts: 5,256

Re: Adding one summary row at the bottom

Adding sums is not really a table thing, rather a report requirement.

PROC PRINT could do this.

Data never sleeps

View solution in original post


All Replies
Solution
‎10-08-2014 06:30 AM
Super User
Posts: 5,256

Re: Adding one summary row at the bottom

Adding sums is not really a table thing, rather a report requirement.

PROC PRINT could do this.

Data never sleeps
☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 1 reply
  • 141 views
  • 0 likes
  • 2 in conversation