Rational Developer for System z
Enterprise COBOL for z/OS, Version 4.1, Language Reference


DAY-OF-INTEGER

The DAY-OF-INTEGER function converts a date in the Gregorian calendar from integer date form to Julian date form (YYYYDDD).

The function type is integer.

The function result is a seven-digit integer.

If the DATEPROC compiler option is in effect, the returned value is an expanded date field with implicit DATE FORMAT YYYYXXX.

Read syntax diagramSkip visual syntax diagram
Format

>>-FUNCTION DAY-OF-INTEGER--(--argument-1--)-------------------><

argument-1
A positive integer that represents a number of days succeeding December 31, 1600, in the Gregorian calendar. The valid range is 1 to 3,067,671, which corresponds to dates ranging from January 1, 1601 thru December 31, 9999.

The INTDATE compiler option affects the starting date for the integer date functions. For details, see the Enterprise COBOL Programming Guide.

The returned value represents the Julian equivalent of the integer specified as argument-1. The returned value is an integer of the form YYYYDDD where YYYY represents a year in the Gregorian calendar and DDD represents the day of that year.


Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)