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, semantic-type= SQL-DATE
|
DATE9.
|
|
for length = 3, semantic-type= SQL-TIME
|
TIME8.
|
|
for length = 10, semantic-type= SQL-STMP
|
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 floating-point
|
$HEX(2xlen).
|
G
|
graphics data
|
$HEX(2xlen).
|
H
|
hexadecimal character
|
$len.
|
K
|
kanji (same as Y)
|
$HEX(2xlen).
|
L
|
long floating-point
|
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 floating-point
|
E14.
|
T
|
PL/I bit representation
|
$HEX(2xlen).
|
Y
|
double-byte 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.