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

Dear all,

I have a table like this:

FundIDJan 2001Feb 2001Mar 2001
Fund 111.02.0

3.0

Fund 221.12.13.1
Fund 330.10.3

And would like to format it, so it looks like this:

FundIDDateReturns
Fund11Jan 20011.0

Fund1

1Feb 20012.0
Fund11Mar 20013.0

Fund2

2Jan 20011.1
Fund22Feb 20012.1
Fund22Mar 20013.1
Fund33Jan 20010.1
Fund33Feb 20010.3

Of course, I have close to 10,000 funds and the return date (months) are in hundreds.

Any thoughts are greatly appreciated.

Thanks

Daniel

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User

Take a look at proc transpose.

Not sure if this is what you need:

proc transpose data=have out=want;

by fund id;

run;

View solution in original post

2 REPLIES 2
Reeza
Super User

Take a look at proc transpose.

Not sure if this is what you need:

proc transpose data=have out=want;

by fund id;

run;

danielli
Calcite | Level 5

how come i forgot this!

need to pick up my little sas book again.

thanks a bunch, reeza!

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