THREAD

THREAD indicates that a COBOL program is to be enabled for execution in a run unit that has multiple threads.

Read syntax diagramSkip visual syntax diagram
THREAD option syntax

   .-NOTHREAD-.   
>>-+----------+------------------------------------------------><
   '-THREAD---'   

Default is: NOTHREAD

Abbreviations are: None

All programs within a run unit must be compiled using the same option: either THREAD or NOTHREAD.

If the THREAD option is in effect, the following elements are not supported. If encountered, they are diagnosed as errors:

Usage notes

Performance consideration: If you use the THREAD option, you can expect some runtime performance degradation due to the overhead of serialization logic that is automatically generated.