Nesting purge protection calls

The START_ and STOP_PURGE_PROTECTION functions can be nested. You should ensure that, if multiple START_PURGE_PROTECTION calls are issued for a task, that the correct number of STOP_PURGE_PROTECTION calls are issued to cancel the purge protection.

If you issue two starts and only one stop, purge protection remains on for the current task.

For example, for any current task, more than one global user exit program may be driven. You must design your exit programs to ensure that purge protection is correctly cancelled. An example of nesting is shown as follows:
 XEIIN:
  EXIT_PROG1: Calls START_PURGE_PROTECTION
 
    XFCREQ:
     EXIT_PROG2: Calls START_PURGE_PROTECTION
 
    XFCREQC:
     EXIT_PROG3: Calls STOP_PURGE_PROTECTION
 
 XEIOUT:
  EXIT_PROG4: Calls STOP_PURGE_PROTECTION
 


dfha3c0094.html | Timestamp icon Last updated: Monday, 5 June 2017