Skip to main content

Problem:

In designing a transaction-oriented application that emulates a mainframe legacy system, it would be helpful to be able to restore all COBOL modules to their initial state, as though the entire run-unit had exited and had been re-started, but without the overhead of actually exiting and re-starting.   The function CBL_SUBSYSTEM is supposed to have this capability, but how to call CBL_SUBSYSTEM from C?

Resolution:

Attached to this Knowledge Base article is a tar file containing an example demonstration.  Included are C and COBOL source files, a script showing how to compile, and a "readme.txt" with information and instructions.

Attachments:

subsystem_demo.tar

Old KB# 7220