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.
search cancel

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.

book

Article ID: 35760

calendar_today

Updated On:

Products

Endevor Endevor Natural Integration Endevor - ECLIPSE Plugin Endevor - Enterprise Workbench

Issue/Introduction

 

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.

 

 

 

 

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.