You can create an intermediate code file using the Compiler directly. There is no need to link the program. However, to run the program you need to do one of the following:
For more details see Packaging Applications.
You can compile the source code file myprog.cbl to intermediate code as follows:
cob myprog.cbl