Rational Developer for System z
COBOL for Windows, Version 7.5, Programming Guide


Preinitializing the COBOL runtime environment

Preinitialization allows an application to initialize the COBOL runtime environment once, perform multiple executions using that environment, and then explicitly terminate the environment.

You can use preinitialization to invoke COBOL programs multiple times from a non-COBOL environment, such as C/C++.

Preinitialization has two primary benefits:

Use preinitialization services for multilanguage applications where non-COBOL programs need to use a COBOL program in its last-used state. For example, a file can be opened on the first call to a COBOL program, and the invoking program expects subsequent calls to the program to find the file open.

Restriction: Preinitialization is not supported under CICS.

Use the interfaces described in the related tasks to initialize and terminate a persistent COBOL runtime environment. Any DLL that contains a COBOL program used in a preinitialized environment cannot be deleted until the preinitialized environment is terminated.

Example: preinitializing the COBOL environment

related tasks
Initializing persistent COBOL environment
Terminating preinitialized COBOL environment


Terms of use | Feedback

Copyright IBM Corporation 1996, 2008.
This information center is powered by Eclipse technology. (http://www.eclipse.org)