哪位大牛能解释下view的作用是什么么?或者能给个reference不?
data view1 / view=view1;
set mydata;
by BYVAR;
if first.BYVAR then __n=0;
__n+1;
run;
data view2 / view=view2;
set mydata;
by BYVAR;
if first.BYVAR then __n=0;
if ^first.BYVAR;
__n+1;
run;
data lead;
merge view1
view2(keep=BYVAR var rename=(var=lead_var));
by BYVAR __n;
drop __n;
run;



雷达卡




京公网安备 11010802022788号







