The COBOL compiler requires a STOP RUN (or GOBACK) statement in every program to satisfy internal requirements.
If it does not find STOP RUN, the compiler inserts one after the last program statement. If CICS finds STOP RUN, however, the CICS region terminates and the network shuts down.
To satisfy the compiler, without disrupting CICS, place the STOP RUN (or GOBACK) statement in the program where it does not execute, for example, following a CICS RETURN, LINK, or XCTL command.
Every CICS program must contain a RETURN, LINK, or XCTL command. By placing STOP RUN (or GOBACK) after a CICS jump, control is transferred before the STOP RUN executes.