After assembling and linking a custom COBOL exit for Endevor, the output created by the exit is invalid with only 0's and no actual data.

Document ID : KB000031726
Last Modified Date : 14/02/2018
Show Technical Document Details

When a COBOL program is compiled and linked for any exit point within Endevor, the following code is required on the link step:

//      DD *     
      INCLUDE SYSLIB(EPC1UEXT) *front-end program*
INCLUDE SYSLIB(exit program name) *real exit program*


When the ENTRY statement is missing, the user exit is not properly invoked and the output that is supposed to be created by the exit is coming out as 0's rather then actual data.

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.