The SAS Output Delivery System and reporting techniques

Column grouping

Reply
Contributor
Posts: 69

Column grouping

I have four columns named prd_grp,prd-subgroup,prd_desc and
loan_amount.
The output columns in sequence are: Item Total Loan_amount
The data is as follows:

prd_grp prd_subgroup prd_desc loan_amount


ASSETS All_Other Loans 234
ASSETS All_Other abc 345
ASSETS All_Other Quoted_Shares 213
LIABILIITES Deposits Current_Deposs 435
LIABILIITES Deposits Fixed 325
LIABILIITES Deposits NIDs & Repos 256
LIABILIITES Deposits Savings 218

I want the output with Item,total and loan_amount columns:
Below is the output I needed


Item Total Loan_amount


ASSETS
All_Other
Loans 234
abc 345
Quoted_Shares Held 213
Total 692
LIABILIITES
Deposits
Current Deposits 435
Fixed 325
NIDs & Repos 256
Savings 218
Total 1234


Can anone help me on this,as this is critical.
Thanks in advance.
SAS Super FREQ
Posts: 8,862

Re: Column grouping

Posted in reply to Siddhartha
Hi:
Several answers have been posted to this example when you asked it in your 2 PREVIOUS forum postings. Did you try any of that code? Was there an issue with any of those responses or approaches?

Also, for "critical" or "urgent" help you should open a track with Tech Support. Forum participation happens when folks have time and the inclination to help. If you haven't looked at or tried anything that's already been suggested you may find that folks don't have much incliniation to help.

If there was an issue with any of the code posted in the other places, then it would have been better for you to continue the thread/conversation in the other posting, so people can see code that's already been suggested and that you seem to find unacceptable.

cynthia

Previous forum postings
SAS Procedures responses:
http://support.sas.com/forums/thread.jspa?threadID=12206&tstart=0 (3 postings)

ODS and Reporting responses:
http://support.sas.com/forums/thread.jspa?threadID=12186&tstart=0 (6 postings)
Ask a Question
Discussion stats
  • 1 reply
  • 124 views
  • 0 likes
  • 2 in conversation