How to mention compiler options in COBOL module

After writing your COBOL program with CICS. The next point is compiling the program. If we want a Load module, you need to do first translating and then compile with COBOL compiler.

In the COBOL program, before identification division the following compiler options you can mention.

COBOL compiler options

CBL(DYNAM,RENT)

CICS translate commands

PROCESS XOPTS(CICS,NOLINKAGE)

CBL(DYNAM,RENT)
Identification Division.
.
.

With the above options, your program will compile successfully and load module will be created.

Advertisements

Author: Srini

Experienced software developer. Skills in Development, Coding, Testing and Debugging. Good Data analytic skills (Data Warehousing and BI). Also skills in Mainframe.