7.1.17 INTEGER-OF-DATE
The INTEGER-OF-DATE function converts a date in the Gregorian calendar
from standard date form (YYYYMMDD) to integer date form.
The function type is integer.
The function result is a 7-digit integer with a range from 1 to 3,067,671.
___ Format _____________________________________________________________
| |
| >>__FUNCTION INTEGER-OF-DATE__(argument-1)__________________________>< |
| |
|________________________________________________________________________|
argument-1
Must be an integer of the form YYYYMMDD, whose value is obtained from
the calculation (YYYY * 10,000) + (MM * 100) + DD.
- YYYY represents the year in the Gregorian calendar. It must be an
integer greater than 1600, but not greater than 9999.
- MM represents a month and must be a positive integer less than 13.
- DD represents a day and must be a positive integer less than 32,
provided that it is valid for the specified month and year
combination.
The returned value is an integer that is the number of days the date
represented by argument-1, succeeds December 31, 1600 in the Gregorian
calendar.
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 IBM
X COBOL for OS/390 & VM Programming Guide. <_Host_<
© 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.