Expands a two-digit year in format YYDDD to a four-digit year, with the returned value in YYYYDDD format.
Y4JULIAN (d[, w])
d is a string expression of computational and character type with at least five characters representing a date. Characters in excess of five must be formed by leading blanks. If the character type is omitted, it is converted to character by default.
w is an integer expression value of the century window to be used for any two-digit year formats.
Y4JULIAN('99005',1975) returns '1999005'
Y4JULIAN('00005',1975) returns '2000005'
None.
Description
The Y4JULIAN built-in function returns a value with the CHAR(7) NONVARYING attributes calculated as follows: