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

HI SAS Community,

 

I have the following data:

 

   Date                        SEDOL                         Volume

2013-03-15               5556586                         7, 000

2013-03-15               5556586                         8, 000

2013-03-15               5556586                         5, 000

2013-03-15               5556586                         2, 000

2014-03-15               5556587                         9, 000

2014-03-15               5556587                         6, 000

2014-03-15               5556587                         5, 000

2014-03-15               5556587                         5, 000

 

I need the data like this

 

   Date                        SEDOL                         Volume

2013-03-15               5556586                         22, 000

 

2014-03-15               5556587                         25, 000

 

Thanks in advance for your help. Cheers!

 

1 ACCEPTED SOLUTION

Accepted Solutions
PaigeMiller
Diamond | Level 26

Try this:

proc summary data = have;
    class date sedol;
    var volume;
    output out=want sum=;
run;
--
Paige Miller

View solution in original post

2 REPLIES 2
PaigeMiller
Diamond | Level 26

Try this:

proc summary data = have;
    class date sedol;
    var volume;
    output out=want sum=;
run;
--
Paige Miller
bd_user_10
Quartz | Level 8
Thanks. That works perfectly!

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

Discussion stats
  • 2 replies
  • 1595 views
  • 0 likes
  • 2 in conversation