求解。。问题如下:有两个data aa, bb;
data aa;
input m;
cards;
16
643
65
863
345
56
3
5
77
45
257
45
;
RUN;
DATA BB;
input P1 P2 P3;
CARDS;
44 200 500
;
RUN;
如何在data aa;中增加一列p;
使得如果P<44(bb中的第一个数,这个数是不确定的,不要直接写44) then p=1;
44<=p<200 then p=2;
p>=200 then p=3;
这个能实现么? 希望code简单些 。。谢谢啦。。。