OV_INCREMENT_DATE
Incrementing Dates | The Things that Make Up this Example | To Execute this Example |
Category : Other vendor built-in functions
--------
Function name : OV_INCREMENT_DATE
-------------
Function No : 936
-----------
DLL Required : OV_P936.dll or process/function SET_166/OV@P936
------------
Description : Increment/decrement a date by years or months
-----------
Availability : Windows -> YES
Unix -> NO
OS/400 -> YES
ARGUMENTS
---------
Type Required/ Length Decimals
Number A/N Optional Description Min Max Min Max
------ --- -------- ----------- ------- -------
1 N Req Date to be incremented. 6 8 0 0
2 A Req The format of the date to be 1 20
incremented.
A, B, D, F, H, J, L, V, W, X, Y,
Z, SYSTEM, SYSTEM8, SYSFMT,
DDMMYY, YYMMDD, MMDDYY,
DDMMYYYY, YYYYMMDD, MMDDYYYY,
SYSTEM8, SYSFMT8,
YYMM, MMYY, YYYYMM, MMYYYY
3 A Req The format of the output date 1 20
A, B, D, F, H, J, L, V, W, X, Y,
Z, SYSTEM, SYSTEM8, SYSFMT,
DDMMYY, YYMMDD, MMDDYY,
DDMMYYYY, YYYYMMDD, MMDDYYYY,
SYSTEM8, SYSFMT8,
YYMM, MMYY, YYYYMM, MMYYYY.
4 N Req The number of Months or Years to 1 4 0 0
increment by.
5 A Req Increment by YEAR or MONTH 5 5
'YEAR' = Increment by years
'MONTH' = Increment by months
RETURN VALUES
-------------
Type Required/ Length Decimals
Number A/N Optional Description Min Max Min Max
------ --- -------- ----------- ------- -------
1 N Req The incremented date 2 8 0 0
2 A Opt Return value indicating if the 2 2
date increment was successful.
'OK' = increment was successful
'ER' = increment was unsuccessful