Previous Topic: Return CodeNext Topic: Customizing the Exit


Default Processing

If a runtime error occurs and the default termination exit is used, processing is as follows:

  1. The Dialog Manager performs all necessary rollbacks. This is done regardless of the termination exit used.
  2. The Dialog Manager fail routine calls the default termination exit. It returns to the fail routine without doing anything, which causes the default termination logic in the fail routine to be used.
  3. The CA Gen fail routine displays an error screen that lists the appropriate CA Gen runtime error messages. See the following error message screen:

    TIRM030E: APPLICATION FAILED ** UPDATES HAVE BEEN BACKED OUT

    TIRM031E: FAILING PROCEDURE EXIT DATA FOLLOWS

    TIRM032E: LAST OR CURRENT ACTION BLOCK ID = 507774696

    TIRM033E: LAST OR CURRENT ACTION BLOCK NAME = ABADDEMP

    TIRM034E: LAST OR CURRENT DATABASE STATEMENT =

    TIRM035E: CURRENT STATEMENT BEING PROCESSED = 10

    TIRM037E: ** A FATAL ERROR HAS BEEN ENCOUNTERED **

    TIRM046E: *** TRANSACTION PROCESSING TERMINATED

    TIRM044E: *** PRESS PA2 TO CONTINUE ***

  4. When you press PA2 (NEXT PAGE key) from the error message screen, CA Gen displays the last screen for the transaction that was being processed when the error occurred.

    If you are using the Testing Facility, the PA2 key is the ISPF NEXT PAGE key you defined on the Test Environment Panel.

  5. CA Gen recovers all data in the import views at the time the error occurred. Therefore, all user input is recovered and displayed upon the screen. Screen fields that are only in the export view may or may not be populated, depending on when the error occurred.
  6. An error message appears in the system error message area defined for the screen. This message is distinct from the runtime error messages displayed on the error message screen. The default error message is:

    SYSTEM ERROR OCCURRED - CONTACT SUPPORT.

    See the following illustration for an example of an application screen that is displayed after an error has occurred.

  7. The transaction is terminated, but the application remains active and the user can continue with another transaction as shown in the following screen:

    IEFSLSB CORPORATE MANAGEMENT

    EMPLOYEE MAINTENANCE

    EMPLOYEE NUMBER: 123456 NAME: MICHAEL WILSON

    COST CENTER: 123 DEPARTMENT: 4

    EMPLOYMENT DATE: 082596 STATUS: E

    SALARY: 1234

    ADDRESS: 7250 MICHIGAN PHONE: (214) 555-1414

    CITY/STATE/ZIP: PARIS, TEXAS 73000 BIRTH DATE: 051067

    F02=HELP F05=MAINMENU F07=ADDEMP2

    TIRM000E: SYSTEM ERROR OCCURRED - CONTACT SUPPORT