Cobol Exit 2 is returning garbage in exit control block, except EXIT-CONTROL-BLOCK.
Environment
All version of Endevor
Cause
EPC1UEXT was missing in the Exit 2 linkedit step.
Resolution
Add it and recompiling Exit 2 fixed the issue.
Additional Information
EPC1UEXT makes control blocks available to exit programs written in high-level languages such as COBOL. The include for EPC1UEXT is necessary for exit points 1 through 6, if writing an exit for exit point 7 (package exit) the include is not necessary. For further explanation, see Chapter "Using Exit Control Blocks"