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.14 DAY-TO-YYYYDDD




X The DAY-TO-YYYYDDD function converts argument-1 from a date with a 2-digit
X year (YYnnn) to a date with a 4-digit year (YYYYnnn). Argument-2, when
X added to the year at the time of execution, defines the ending year of a
X 100-year interval, or sliding century window, into which the year of
X 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 YYYYXXX.


 X  ___ Format _____________________________________________________________ 
 X |                                                                        |
 X | >>__FUNCTION DAY-TO-YYYYDDD__(argument-1_ ____________ _)___________>< |
 X |                                          |_argument-2_|                |
   |                                                                        |
   |________________________________________________________________________|

X argument-1

X Must be zero or a positive integer less than 100,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.