Library View Topics Framed Contents Revised Topics Previous Topic Next Topic Search Search ResultsPrevious Topic MatchNext Topic Match Notes List Notes Print Download No PDF Handheld DisconnectedHandheld ConnectedHelp

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.

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_<

Previous Topic Next Topic © 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.