BookmarkSubscribeRSS Feed

[SAS 활용 FAQ] FORMAT 문

Started ‎10-26-2021 by
Modified ‎10-26-2021 by
Views 371
  • 변수에 출력형식을 부여할 때 지정.
  • 변수 값을 출력할 때 사용됨.
  • DATA step과 PROC step에 사용 가능.

FORMAT 변수() 출력형식 ;

 

◀예제▶ salarybonus 값은 총 10 자리, 소수점은 2 자리로 표시하되, 숫자에 천 단위마다 콤마를 표 시하고 Birthday 값은 총 10 자리로 표시하되 yymmdd 형식으로 표시.

 

FORMAT salary bonus comma10.2

birthday yymmdd10. ;

Version history
Last update:
‎10-26-2021 04:49 AM
Updated by:
Contributors

sas-innovate-wordmark-2025-midnight.png

Register Today!

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.


Register now!

Article Labels
Article Tags