Is there any facility available in cobol to do some special task on monthly basis like jcl.
I want to know the command which will do some specific task on 31 st of every month.
Joined: 02 Dec 2003 Posts: 152 Location: Tokyo, Japan
I don't know such facility exists in COBOL itself. If you want to run the total COBOL program on month end, you can schedule the JCL running that program accordingly.
Or, you can check with the date for monthend. These monthend dates can be updated in a parameter annually. In COBOL. you can read the parameter for date and check whether the processing date is equal to the parameter dates. Then you can branch your processing depending on the result of the IF loop.