포스팅 목차
* 데이터 세트에서 마지막 관측치 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;
* 통계분석연구회 : http://cafe.daum.net/statsas
* 백승민홈페이지 : http://www.statwith.pe.kr
반응형
'SAS' 카테고리의 다른 글
Re:sas sql 관한 질문!! (0) | 2018.11.19 |
---|---|
[MACRO] 매크로 변수 삭제하기. (0) | 2018.11.19 |
[SAS 단축키] SAS 확장편집기 단축키 (0) | 2018.11.18 |
표준화 회귀 계수 생성하기 (0) | 2018.10.30 |
[tranwrd] 불필요 변수 처리 방안 ( 단어 삭제 ) (0) | 2018.10.30 |
댓글