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

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 857 views
  • 0 likes
  • 2 in conversation