BookmarkSubscribeRSS Feed

[SAS 활용 FAQ] 데이터의 마지막 값만으로 새로운 SAS Dataset을 생성하는 방법

Started ‎06-07-2021 by
Modified ‎06-07-2021 by
Views 599

아래의 샘플에서 end=를 사용하면 마지막 obs를 선택할 수가 있습니다.

data aa;

set sashelp.class end=last;

if last;

run;

Comments

This may be better, because it reads only the last record.

( 마지막 레코드만 읽기 때문에 더 좋을 수 있습니다. )

 

data aa;
  if _n_>1 then stop;
  set sashelp.class nobs=nrecs point=nrecs ;
run;

 

Version history
Last update:
‎06-07-2021 09:27 PM
Updated by:
Contributors

sas-innovate-white.png

🚨 Early Bird Rate Extended!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9.

 

Lock in the best rate now before the price increases on April 1.

Register now!

Article Labels
Article Tags