BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Unstefan
Calcite | Level 5

Hello,

 

Need some help with the following situation :

 - need to cumulate the amount for variable nocont

but in SAS

I try with summary but doesn't work

 

noconttipdateamount
Ax17-Oct-182.00
By17-Oct-183.00
Cz17-Oct-184.00
Ax17-Oct-18100.00
Cz17-Oct-181234.24
Cz17-Oct-1834.00
By17-Oct-18279.00
Dg17-Oct-1845.00
Ej17-Oct-1838.00
Fk17-Oct-18339.00
1 ACCEPTED SOLUTION

Accepted Solutions
RW9
Diamond | Level 26 RW9
Diamond | Level 26

Post test data in the form of a datastep.  Show what the output should be from that datastep.  Explain (with log if needed) what "doesn't work".   From what you post:

proc summary data=have;
  class nocont;
  output out=want sum()=;
run;

Should work.

View solution in original post

1 REPLY 1
RW9
Diamond | Level 26 RW9
Diamond | Level 26

Post test data in the form of a datastep.  Show what the output should be from that datastep.  Explain (with log if needed) what "doesn't work".   From what you post:

proc summary data=have;
  class nocont;
  output out=want sum()=;
run;

Should work.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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