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

X 7.1.11 DATE-TO-YYYYMMDD




X The DATE-TO-YYYYMMDD function converts argument-1 from a date with a
X 2-digit year (YYnnnn) to a date with a 4-digit year (YYYYnnnn).
X Argument-2, when added to the year at the time of execution, defines the
X ending year of a 100-year interval, or sliding century window, into which
X the year of argument-1 falls.


X The function type is 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.


 X  ___ Format _____________________________________________________________ 
 X |                                                                        |
 X | >>__FUNCTION DATE-TO-YYYYMMDD__(argument-1_ ____________ _)_________>< |
 X |                                            |_argument-2_|              |
   |                                                                        |
   |________________________________________________________________________|

X argument-1

X Must be zero or a positive integer less than 1,000,000.


X argument-2

X Must be an integer. If argument-2 is omitted, the function is
X evaluated assuming the value 50 was specified.


X The sum of the year at the time of execution and the value of argument-2
X must be less than 10,000 and greater than 1,699.

Subtopics:



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.