can anyone tell me how to calculate the date of 1 months back in cobol from current date.
suppose i have a field current-date in my input file.i have to change this date to 1 month previous date and write that date into a file.how can i do that?
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
Just remember that some months are 30 days, 31 days, 28 days, or 29 days. That makes it rough when you have to use days for the calculations. Check and see if your site has a standard date calculation routine. I developed one in assembler to be called from cobol many years ago, it sure saved a lot of trouble. I received a lot of late night calls from idiots that passed bad data then got bad results and tried to blame me.