playmore 发表于 2014-8-6 08:49 
bob的回复应该和lz的要求不太一致,改了下
data t;
Stop statement will stop SAS internal loops.
The point here is to access last and only last obs.
data _null_;
point=lastobs;
set sashelp.class nobs=lastobs point=point;
call symputx('lastage',Age);
stop;
run;
%put >>>&lastage<<<;