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


Preparing COBOL programs for multithreading

Although you cannot initiate or manage program threads in a COBOL program, you can prepare a COBOL program to run in a multithreaded environment. You can run COBOL programs in multiple threads within a process.

There is no explicit COBOL language to use for multithreaded execution; rather, you compile with the THREAD compiler option.

After you compile COBOL programs using the THREAD compiler option, other applications can call these COBOL programs in such a way that the programs run in multiple threads within a process or as multiple program invocation instances within a thread. Therefore, COBOL programs can run in multithreaded environments such as MQ applications.

Example: using COBOL in a multithreaded environment

related concepts
Multithreading

related tasks
Working with language elements with multithreading
Choosing THREAD to support multithreading
Transferring control to multithreaded programs
Ending multithreaded programs
Handling COBOL limitations with multithreading

related references
THREAD
PROGRAM-ID paragraph (COBOL for Windows Language Reference)


Terms of use | Feedback

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