JULIANw. Format

Writes SAS date values as Julian dates in the form yyddd or yyyyddd.

Category: Date and Time
Alignment: Left

Syntax

JULIANw.

Arguments

w

specifies the width of the output field.

Default 5
Range 5–7
Tip If w is 5, the JULIANw. format writes the date with a two-digit year. If w is 7, the JULIANw. format writes the date with a four-digit year.

Details

The JULIANw. format writes SAS date values in the form yyddd or yyyyddd, where
yy or yyyy
is a two-digit or four-digit integer that represents the year.
ddd
is the number of the day, 1–365 (or 1–366 for leap years), in that year.

Example

The example table uses the input value of 19431, which is the SAS date value that corresponds to March 14, 2013 (the 73rd day of the year).
Statements
Results
 
----+----1
select put(19431,julian5.);
13073
select put(19431,julian7.);
2013073

See Also

Formats: