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.

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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