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 6.1.5.2 Arithmetic with Date Fields




X Arithmetic operations that include a date field are restricted to:


X Date field operands are compatible if they have the same date format
X except for the year part, which may be windowed or expanded.


X The following operations are not allowed:


X The following topics describe the result of using date fields in the
X supported addition and subtraction operations.


X For more information on using date fields in arithmetic operations, see:


X Notes:


X 1. Arithmetic operations treat date fields as numeric items; they do not
X recognize any date-specific internal structure. For example, adding 1
X to a windowed date field containing the value 991231 (that might be
X used in an application to represent December 31, 1999) results in the
X value 991232, not 000101.


X 2. When used as operands in arithmetic expressions or arithmetic
X statements, windowed date fields are automatically expanded according
X to the century window specified by the YEARWINDOW compiler option.
| >_Host_> When the DATEPROC(TRIG) compiler option is in effect, this
| expansion is sensitive to trigger values in the windowed date field.
| <_Host_< For details of >_Host_> both regular and trigger-sensitive
| <_Host_< windowed expansion, see "Semantics of Windowed Date Fields"
X in topic 5.3.6.1.

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.