7.1.10 DATE-OF-INTEGER
The DATE-OF-INTEGER function converts a date in the Gregorian calendar
from integer date form to standard date form (YYYYMMDD).
The function type is integer.
The function result is an 8-digit integer.
X If the DATEPROC compiler option is in effect, then the returned value is
X an expanded date field with implicit DATE FORMAT YYYYXXXX.
___ Format _____________________________________________________________
| |
| >>__FUNCTION DATE-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.
X >_Host_> Under OS/390 and VM, the INTDATE compiler option affects the
X starting date for the integer date functions. For details, see the
X IBM COBOL for OS/390 & VM Programming Guide. <_Host_<
The returned value represents the International Standards Organization
(ISO) standard date equivalent to the integer specified as argument-1.
The returned value is an integer of the form YYYYMMDD where YYYY
represents a year in the Gregorian calendar; MM represents the month of
that year; and DD represents the day of that month.
© Copyright IBM Corp. 1991, 1998
IBM Library Server Copyright 1989, 2005 IBM Corporation. All rights reserved.
Return to library:
z/OS |
z/OS.e |
TPF |
z/VSE |
z/VM |
IBM Hardware |
IBM System z Redbooks
Glossary:
IBM terminology
Publications:
How to order publications
Readers:
Download IBM Library Reader |
Download IBM Softcopy Reader |
Download Adobe® Acrobat® Reader®
Library management:
Download IBM Softcopy Librarian
Contacts:
Contact z/OS
Adobe, the Adobe logo, Acrobat, the Acrobat logo, and Acrobat Reader are registered trademarks
of Adobe Systems incorporated.