OS/VS COBOL allowed the use of the ENDJOB option for both preloaded and nonpreloaded programs with a user modification to the IMS Program Controller (DFSPCC20).
The user modification included code that would store the addresses of certain preloaded subroutines and might cause intermittent problems at execution. This user modification (or any user supplied code which performs the same task) must be removed before running under Language Environment.