JULDAYw. Format

Writes date values as the Julian day of the year.
Category: Date and Time
Alignment: right

Syntax

JULDAYw.

Syntax Description

w
specifies the width of the output field.
Default:3
Range:3–32

Details

The JULDAYw. format writes SAS date values in the form ddd, where
ddd
is the number of the day, 1–365 (or 1–366 for leap years).

Example

The example table uses the input values of 18993, which is the SAS date value that corresponds to January 1, 2012, and 19068, which is the SAS date value that corresponds to March 16, 2012.
Input Value
SAS Statement
Result
----+----1
18993
put date julday3.;
  1
19068
put date julday3.;
 76