Reads packed Julian dates in the hexadecimal format ccyydddF for
IBM.
-
w
-
specifies the width of the input field.
The PDJULIw.
informat reads IBM packed Julian date values in the form ccyydddF, converting them to SAS date values, where
-
cc
-
is the one-byte representation of a two-digit
integer that represents the century.
-
yy
-
is the one-byte representation of a two-digit
integer that represents the year. The PDJULIw
informat makes an adjustment to the one-byte century representation by adding
1900 to the two-byte ccyy value in order to produce
the correct four-digit Gregorian year. This adjustment causes ccyy values of 0098 to become 1998, 0101 to become 2001, and
0218 to become 2118.
-
ddd
-
is the one-and-a-half bytes representation
of the three-digit integer that corresponds to the Julian day of the year,
1-365 (or 1-366 for leap years).
-
F
-
is the half byte that contains all binary
1s, which assigns the value as positive.
input date pdjuli4.;
Data Line |
Results* |
----+----1
|
|
0099001F
|
14245
|
0110015F
|
18277
|
*
SAS date value 14245 is January 1, 1999. SAS date value
18277 is January 15, 2010. |
|
Formats:
|
|
Functions:
|
|
Informats:
|
|
System Option:
|
Copyright © 2011 by SAS Institute Inc., Cary, NC, USA. All rights reserved.