BookmarkSubscribeRSS Feed

[SAS 활용 FAQ] FORMAT 문

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

FORMAT 변수() 출력형식 ;

 

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

 

FORMAT salary bonus comma10.2

birthday yymmdd10. ;

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

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

Article Labels
Article Tags