JULIANw. Informat

Reads Julian dates in the form yyddd or yyyyddd.
Category: Date and Time

Syntax

JULIANw.

Syntax Description

w
specifies the width of the input field.
Default:5
Range:5–32

Details

The date values must be in one of the following forms:
  • yyddd
  • yyyyddd
yy or yyyy
is a two-digit or four-digit integer that represents the year.
dd or ddd
is an integer from 01–365 that represents the day of the year.
Julian dates consist of strings of contiguous numbers, which means that zeros must pad any space between the year and the day values.
Julian dates that contain year values before 1582 are invalid for the conversion to Gregorian dates.
Note: SAS interprets a two-digit year as belonging to the 100-year span that is defined by the YEARCUTOFF= system option.

Example

input julian_date julian7.; 
Data Line
Result 1
----+----1
12076
19068
2012076
19068
1The input values correspond to the 76th day of 2012, which is March 16.

See Also

Formats:
Functions:
DATEJUL Function in SAS Functions and CALL Routines: Reference
JULDATE Function in SAS Functions and CALL Routines: Reference
System Options:
YEARCUTOFF= System Option in SAS System Options: Reference