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!

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

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