I have to use DECLARATIVE in a Cobol/DB2 program. Program executes under IMS as DL/I batch.
When I compile the program, DB2 pre-compiler puts DSNSQL SECTION just after PROCEDURE DIVISION. In the next step, my cobol compiler complains that DECLARATIVE is not immediately following PROCEDURE DIVISION.
Is there any way to work around this problem?
Thanks,
When I compile the program, DB2 pre-compiler puts DSNSQL SECTION just after PROCEDURE DIVISION. In the next step, my cobol compiler complains that DECLARATIVE is not immediately following PROCEDURE DIVISION.
Is there any way to work around this problem?
Thanks,