Previous Page | Next Page

Informats

PDJULIw. Informat



Reads packed Julian dates in the hexadecimal format ccyydddF for IBM.
Category: Date and Time

Syntax
Syntax Description
Details
Examples
See Also

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, 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.


Examples

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.


See Also

Formats:

JULDAYw. Format

JULIANw. Format

PDJULGw. Format

PDJULIw. Format

Functions:

DATEJUL Function

JULDATE Function

Informats:

JULIANw. Informat

PDJULGw. Informat

System Option:

YEARCUTOFF= System Option

Previous Page | Next Page | Top of Page