BookmarkSubscribeRSS Feed

[SAS 활용 FAQ] FORMAT 문

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

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

Article Labels
Article Tags