BookmarkSubscribeRSS Feed

[SAS 활용 FAQ] FORMAT 문

Started ‎10-26-2021 by
Modified ‎10-26-2021 by
Views 498
  • 변수에 출력형식을 부여할 때 지정.
  • 변수 값을 출력할 때 사용됨.
  • 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:

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

Article Labels
Article Tags