From: Zintie on
Hi All,

Am trying to figure this problem out:

my ds:

PT Visits score
-----------------------------------------
101 V0 5
101 V1 10

my desire output:

PT VO V1
-----------------------------------------
101 5 10


currently am splitting the ds into 2 and then merging back..but am
sure there more advanced way of doing it..


Thanks in advance!

Z
From: Ya on
On Jul 13, 7:01 pm, Zintie <raisin...(a)yahoo.com> wrote:
> Hi All,
>
> Am trying to figure this problem out:
>
> my ds:
>
>  PT       Visits      score
> -----------------------------------------
>  101       V0             5
>  101       V1             10
>
> my desire output:
>
> PT         VO            V1
> -----------------------------------------
> 101        5               10
>
> currently am splitting the ds into 2 and then merging back..but am
> sure there more advanced way of doing it..
>
> Thanks in advance!
>
> Z

proc transpose data=have out=want;
by pt;
var score;
id visits;
run;

From: Zintie on


Thanks!!