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!

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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.

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