Previous Topic Next topic Print topic


Creating Callable Shared Objects

To create a callable shared object, use the cob -z command.

For example, the following command creates the callable shared object myprog.so.

cob -z myprog.cbl 

If this is the main (or only) module of an application it can be run using the following command:

cobrun myprog

Alternatively, if myprog is a subprogram, it can be loaded and run using the COBOL CALL syntax, such as CALL "myprog", and canceled and unloaded using the following command:

CANCEL "myprog".
Previous Topic Next topic Print topic