Have written a COBOL Endevor Exit7 exit and have modified several fields but do not see the mods being used by the exit during package execution.

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

Symptoms:

Have written a COBOL Endevor Exit7 exit and have modified several fields but do not see the mods being used by the exit during package execution.

 

Environment:

All supported versions of CA Endevor.

 

Resolution:

When one has made a modification to a field with the Package exit (EXIT7), one of the following fields need to be updated to notify the exit that a change has been made.

 

If the changed has been made to a field in the Package Request Block the following field needs to be set to Y for YES:

     PECB-MODS-MADE-TO-PREQ

 

If the changed has been made to a field in the Package Exit block the following field needs to be set to Y for YES:

     PECB-MODS-MADE-TO-PECB

 

If the changed has been made to a field in the Package Exit File Block the following field needs to be set to Y for YES:

     PECB-MODS-MADE-TO-PFIL  

 

 

Example:

  IF PECB-FUNCTION-LITERAL = 'CAST ' THEN 
  IF PECB-BEFORE THEN 
    MOVE 'Y' TO PREQ-PKG-CAST-COMPVAL 
    MOVE 4 TO PECB-NDVR-EXIT-RC 
    MOVE 'Y' TO PECB-MODS-MADE-TO-PREQ 

The last lines is  telling the exit changes have been made. Without those lines Endevor is not aware that changes have been made.