![]() |
Copyright © Cloud Software Group, Inc. All Rights Reserved |
Adds or subtracts a component (such as a day, week, month, or year) to or from a date and returns a new date value. (F)
•
•
• Its syntax is C (fixed-length character string) with a length of one.
• If the component being added or subtracted is a month, $ADD_DATE returns the last possible date in the resultant month if the resultant day does not exist in the resultant month. For example, one month subtracted from MARCH 31, 2000 returns a value of FEBRUARY 29, 2000.
•
• Treat with caution values returned for dates prior to the adoption of the Gregorian calendar in 1582 or for dates in the very far future that could be subject to calendar adjustments (for example, it is not yet clear if the year 4000 is a leap year). $ADD_DATE accurately returns values for dates 200 years before or after the present date.TIBCO Object Service Broker for z/OS Installing and Operating for information on YYCENTURYRANGE in z/OS. See TIBCO Object Service Broker Parameters for information on YYCENTURYRANGE in Open Systems.
Raised if the resulting date cannot be expressed as a semantic type date, binary 4. Signaled if the value given for component is not one of D, W, M, or Y.The following rule returns the employee names and the dates when they reach their five-year anniversaries, and displays the result in the message log:
![]() |
Copyright © Cloud Software Group, Inc. All Rights Reserved |