Field Type

Field Description

Default SAS Format


C

character

$len.

B

binary:


for length ≤
8, unsigned

(2xlen+1).dec


for length 8, signed

(2xlen+2).dec


for length > 8

$HEX(2xlen).


for length = 4, semantictype= SQLDATE

DATE9.


for length = 3, semantictype= SQLTIME

TIME8.


for length = 10, semantictype= SQLSTMP

DATETIME30.6


D

packed decimal:


for length ≤16,
unsigned

(2xlen+1).dec


for length 16, signed

(2xlen+2).dec


for length > 16

$HEX(2xlen).


E

extended floatingpoint

$HEX(2xlen).

G

graphics data

$HEX(2xlen).

H

hexadecimal character

$len.

K

kanji (same as Y)

$HEX(2xlen).

L

long floatingpoint

E24.

N

numeric (zoned decimal):


for length 16, unsigned

len.dec


for length 16, signed

(len+1).dec


for length > 16

$HEX(2xlen).


S

short floatingpoint

E14.

T

PL/I bit representation

$HEX(2xlen).

Y

doublebyte character
set (DBCS)

$HEX(2xlen).

Z

mixed DBCS and single
byte

$HEX(2xlen).

2

halfword binary (aligned),
unsigned

5.dec

2

halfword binary (aligned),
signed

6.dec

4

fullword binary (aligned),
unsigned

9.dec

4

fullword binary (aligned),
signed

10.dec

8

doubleword binary (aligned),
unsigned

17.0

AT LEAST ONE W.D FORMAT WAS TOO
SMALL FOR THE NUMBER TO BE PRINTED. THE DECIMAL POINT MIGHT BE SHIFTED
BY THE BEST FORMAT
. The message can occur, such as
when you invoke the PRINT procedure. If this message appears, you
should specify a larger width.