BookmarkSubscribeRSS Feed

[SAS 활용 FAQ] 표준/비표준 데이터 - informat

Started ‎11-09-2021 by
Modified ‎11-09-2021 by
Views 518
  • 표준 숫자 데이터:    15   -15 15.4   00.99   1.23E3   -1.23E-3
  • 비표준 숫자 데이터: 12,345 (23) $3,456.0    1960-01-01
  • SAS 에게 Raw Data 를 어떻게 읽어올 지를 지시.

<$><informat><w>.<d>

$

문자타입, 생략 시, 숫자타입

informat

비표준 데이터일 경우 사용

w

읽을 총 자리수

d

숫자일 경우 사용할 수는 있음.

 

Ex) informat 예시

구분

Raw        data value

informat

SAS      data value

SAS

column(유형과 길이)

표준

12345.6

7.

12345.6

숫자 8

 

 

데이터

홍길동

$6.

홍길동

문자 6

홍길동

$10.

홍길동

문자 10

비표준

데이터

12,345.67

Comma9.

12345.67

숫자 8

01/01/1960

Yymmdd10.

0

숫자 8

Version history
Last update:
‎11-09-2021 03:38 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