How to code an Application to complete the previous generation of the application
Code the following:
IF ESP_APPL_GEN THEN DO
IF NOT COMPLETED THEN -
ESPNOMSG AJ ALL APPL(%ESPAPPL..0) TERMINATE
Note:
During the generation phase the above will check for the application and if it's not completed, it will force it to complete.
Then in the process phase it will not try to complete the application again.