Hi folks.
I frequently deal with datasets in the folling format:
OBS POLNO UNITS PRICE FUNDNAME VALUE
1 K1 100 5 MANAGED 500
2 K1 200 10 EQUITY 2000
3 K1 10 1 WITH PR 10
I need to manipulate this data set so that all this data
appears in one observation under the POLNO.
As it stands at the moment I can accomplish this by running a proc transpose on each on the variables, (UNITS -- VALUE), creating new unique variable names in the process before merging the 4 new datasets together.
I was wondering if there is a more efficient way of accomplishing this task? Can proc tranpose do this in one step?
Regards,
Chris....
I frequently deal with datasets in the folling format:
OBS POLNO UNITS PRICE FUNDNAME VALUE
1 K1 100 5 MANAGED 500
2 K1 200 10 EQUITY 2000
3 K1 10 1 WITH PR 10
I need to manipulate this data set so that all this data
appears in one observation under the POLNO.
As it stands at the moment I can accomplish this by running a proc transpose on each on the variables, (UNITS -- VALUE), creating new unique variable names in the process before merging the 4 new datasets together.
I was wondering if there is a more efficient way of accomplishing this task? Can proc tranpose do this in one step?
Regards,
Chris....