BookmarkSubscribeRSS Feed

[SAS 활용 FAQ] 1일에 전월 1일 ~ 말일 데이터를 뽑는 설정을 하는 방법이 궁금합니다.

Started ‎06-28-2021 by
Modified ‎06-28-2021 by
Views 505

intnx함수를 이용하여 작업을 해보시기 바랍니다. 이 함수에 대한 자세한 가이드는 SAS Help를 참고하시기 바랍니다.

예)

%let a="11MAR2013:00:00:00"dt;

data one;

a=intnx('dtmonth',&a,-1,'beginning');

b=intnx('dtmonth',&a,-1,'end');

format a b datetime23.3;

run;

Version history
Last update:
‎06-28-2021 09:52 PM
Updated by:
Contributors

sas-innovate-white.png

Special offer for SAS Communities members

Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.

 

View the full agenda.

Register now!

Article Labels
Article Tags