12-07-2007 07:40 AM
We are using COBOL II on an MPE/iX 6.0 HP3000 system.
IN COBOL, how do i add a number of days to a date and come up with a new date?
Any help would be gratefully appreciated.
12-07-2007 06:51 PM
I'd use the standard COBOL intrinsic functions to do this (works on any reasonably current COBOL platform):
COMPUTE New-Date = FUNCTION DATE-OF-INTEGER(INTEGER-OF-DATE(Date1)+ Number-Of-Days)
12-27-2007 07:19 AM
I'm sorry it took so long for me to get back to this problem.
Can you explain where this information is documented. I can't seem to find anything about it for the HP3000. All of my searches about it point to manuals from MicroFocus Object COBOL.
Not sure of how to get this line working in HP COBOL II.
12-27-2007 07:31 PM
Make sure the POST85 option is specified on your $CONTROL card (either the system one or the one you provide).