input a b;
cards;
1 32
1 48
2 10
;
run;
data t;
input a b;
cards;
1 16
2 20
;
run;如何更新或修改能让t对m中的所有值都更新,产生这个效果[img]file:///C:\Users\Administrator\AppData\Roaming\Tencent\Users\1554154782\QQ\WinTemp\RichOle\]~G~B0`4`5[3~3SHHQ]QBWJ.png[/img][img=0,1]file:///C:\Users\Administrator\AppData\Roaming\Tencent\Users\1554154782\QQ\WinTemp\RichOle\]~G~B0`4`5[3~3SHHQ]QBWJ.png[/img]
1 16
1 16
2 20
书中有个提示:Tip: If you want all duplicates in the master data set to be updated with the
transaction value, use a DO loop to execute a SET statement with the KEY= option
multiple times.原程序是:data m;
set t (rename=(b=newb));
modify m key=index;
b=newb;
run;
请问该怎么做?或者有没其他方法?谢谢了!



雷达卡






京公网安备 11010802022788号







