Joined: 31 Mar 2005 Posts: 436 Location: chennai, India
I am trying to fetch previous date in COBOL through CURRENT DATE function - 1 DAY. I don't get the logic or the parameter correct to get the desired result. Can any one please tell me the short code/logic how to go ahead with the function to fetch previous date in COBOL. I am not using DB2 here.
Joined: 06 Jun 2008 Posts: 8280 Location: Dubuque, Iowa, USA
There is a link to manuals at the top of the page. Click it, click on the COBOL Language Reference manual, and look up the INTEGER-OF-DATE and DATE-OF-INTEGER intrinsic functions in chapter 7.1. These functions simplify date calculations.