Compile to Intermediate Code for Unlinked Environment (-i)

Compiles the COBOL source code files into dynamically loadable intermediate code files, with the file extension .int. These files can then be run without any further processing.

You can only specify the following file formats with this flag: .cbl, .CBL, .cobor .COB

Example

Use the following command to compile the HelloWorld.cbl source file to intermediate code.

cob -i HelloWorld.cbl

This produces the following files: HelloWorld.int.

The intermediate code can now be run using the cobrun command.