Previous Page | Next Page

Formats

PDJULGw. Format



Writes packed Julian date values in the hexadecimal format yyyydddF for IBM.
Category: Date and Time

Syntax
Syntax Description
Details
Examples
See Also

Syntax

PDJULGw.

Syntax Description

w

specifies the width of the output field.

Default: 4
Range: 3-16

Details

The PDJULGw. format writes SAS date values in the form yyyydddF, 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

SAS Statement Results

----+----1
date = '17mar2005'd;
juldate = put(date,pdjulg4.);
put juldate $hex8.;

2005076F


See Also

Formats:

PDJULIw. Format

JULIANw. Format

JULDAYw. Format

Functions:

JULDATE Function

DATEJUL Function

Informats:

PDJULIw. Informat

PDJULGw. Informat

JULIANw. Informat

System Option:

YEARCUTOFF= System Option

Previous Page | Next Page | Top of Page