Hi,
We have a routine which generates a report. This routine is called from another routine. The routine which generates the report is called first to open and initiate the report.
Next time it is called to write a record to the report. But when it tries to do a generate statement, it gets the following error
231 GENERATE encountered before corresponding INITIATE in report
I debugged the routines and found that initiate was in fact being done. Only thing was it was not being done in the same call where generate statement was executed. Instead it was being done in another call. But I dont think that shud cause a problem.
One more important thing - the same report is working in a previous version of Cobol. We recently upgraded to MF Cobol 5 and this stuff is not working here. Also we are facing the problem with all the reports in our application but only with new version of cobol.
The previous verison of our application is in old version of cobol and it runs fine. Appreciate any hints/insight/suggestions/ inputs
We have a routine which generates a report. This routine is called from another routine. The routine which generates the report is called first to open and initiate the report.
Next time it is called to write a record to the report. But when it tries to do a generate statement, it gets the following error
231 GENERATE encountered before corresponding INITIATE in report
I debugged the routines and found that initiate was in fact being done. Only thing was it was not being done in the same call where generate statement was executed. Instead it was being done in another call. But I dont think that shud cause a problem.
One more important thing - the same report is working in a previous version of Cobol. We recently upgraded to MF Cobol 5 and this stuff is not working here. Also we are facing the problem with all the reports in our application but only with new version of cobol.
The previous verison of our application is in old version of cobol and it runs fine. Appreciate any hints/insight/suggestions/ inputs