ILE COBOL Programmer's Guide
Be aware of the following control transfer issues when writing ILE COBOL
programs for a multithreaded environment:
- CALL and CANCEL
- As is the case in single-threaded environments, a program invoked is in
its initial state the first time it is called within a run unit and the first
time it is called after a CANCEL to the CALLED program.
- EXIT PROGRAM
- EXIT PROGRAM returns to the caller of the program without terminating the
thread in all cases. EXIT PROGRAM from a main program is treated as a
comment.
- GOBACK
- Same as EXIT PROGRAM, except that GOBACK from a main program returns to
the caller. This determination can be made if all ILE COBOL programs
invoked within the run unit have returned to their invokers via GOBACK or EXIT
PROGRAM.
[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.