transpose efficiently with proc sql

后端 未结 2 2016
萌比男神i
萌比男神i 2020-12-18 09:35

i would like to know if it is possible to transpose efficiently from wide to long using proc sql in sas.

I\'m aware that proc transpose is much quicker that the met

2条回答
  •  暖寄归人
    2020-12-18 09:54

    I actually did something just like this today. Try doing this,

    proc transpose data = ORIGINAL_DATA;
            out = NEW_DATA;
        by id;
        VAR A-D;
    run;
    

    I think this should work.

提交回复
热议问题