Chapter Contents

Previous

Next
PDJULGw.

PDJULGw.



Reads packed Julian date values in the hexadecimal form yyyydddF for IBM

Category: Date and Time


Syntax
Syntax Description
Details
Examples
See Also

Syntax

PDJULGw.

Syntax Description

w
specifies the width of the input field.
Default: 4
Range: 4


Details

The PDJULGw. informat reads IBM packed Julian date values in the form of yyyydddF, converting them to SAS date values, where

yyyy
is the two-byte representation of the four-digit Gregorian year.

ddd
is the one-and-a-half byte 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.

Note:   SAS interprets a two-digit year as belonging to the 100-year span that is defined by the YEARCUTOFF= system option.  [cautionend]


Examples

input date pdjulg4.;

Data Line in Hexadecimal Results*
----+----1

1999003F
14247
*SAS date value 14247 represents January 3, 1999.


See Also

Formats:

JULDAYw.
JULIANw.
PDJULGw.
PDJULIw.

Functions:

DATEJUL
JULDATE

Informats:

JULIANw.
PDJULIw.

System Option:

YEARCUTOFF=


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.