* 출처 : http://cafe.daum.net/statsas/3F8j/165
* 데이터 세트에서 마지막 관측치 5개 출력하기
* 총관측치 중에서 총관측치-5개의 수자를 매크로 변수로 할당.
data _null_;
if 0 then set sashelp.class nobs=totobs;
call symputx('start',put(totobs-5,15.));
stop;
run;
%put &start;
* (총관측치-5개의 수자) 에서 시적하여 관측치 출력;
proc print data=sashelp.class(firstobs=&start);
run;
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.