data t1;
do i=1 to 5;
j=i;
output;
end;
run;
data t2;
if _N_<=nobs-1 then set t1(firstobs=2 rename=(I=I_lead J=J_lead));
set t1 nobs=nobs;
if _N_>nobs-1 then call missing(I_lead,J_lead);
run;
proc print;run;

|
楼主: bobguy
|
1248
1
Using double set statements to build lead values |
|
学科带头人 7%
-
|
| ||
|
|
| ||
|
Denver大家一起读Paper系列索引贴:
https://bbs.pinggu.org/thread-1430892-1-1.html |
||
加好友,备注cda京ICP备16021002号-2 京B2-20170662号
京公网安备 11010802022788号
论坛法律顾问:王进律师
知识产权保护声明
免责及隐私声明


