PDJULIw. Informat

Reads packed Julian dates in the hexadecimal format ccyydddF for IBM.

Category: Date and Time

Syntax

PDJULIw.

Syntax Description

w

specifies the width of the input field.

Default 4
Range 4

Details

The PDJULIw. informat reads IBM packed Julian date values in the form ccyydddF:
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.

Example

input date pdjuli4.; 
Data Line
Result 1
----+----1
0099001F
14245
0112015F
19007
1SAS date value 14245 is January 1, 1999. SAS date value 19007 is January 15, 2012.

See Also

Functions:
DATEJUL Function in SAS Functions and CALL Routines: Reference
JULDATE Function in SAS Functions and CALL Routines: Reference
System Options:
YEARCUTOFF= System Option in SAS System Options: Reference