Chapter Contents

Previous

Next
JULIANw.

JULIANw.


Reads Julian dates in the form yyddd or yyyyddd

Category: Date and time


Syntax
Syntax Description
Details
Examples
See Also

Syntax

JULIANw.

Syntax Description

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


Details

The date values must be in the form yyddd or yyyyddd, where

yy or yyyy
is a two- or four-digit integer that represents the year.

dd or ddd
is an integer from 01 through 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.  [cautend]


Examples


input julian_date julian7.; 

Data Lines Results*

----+----1


97075

13589

1997075

13589
*The input values correspond to the seventy-fifth day of 1997, which is March 16.


See Also

Format:

JULIANw.

Functions:

DATEJUL
JULDATE

System Option:

YEARCUTOFF=


Chapter Contents

Previous

Next

Top of Page

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