ADSC, MAPC and ADSA compilers, ADS dialogs and ADSA applications fail with error message PREVIOUS TASK ABENDED WITH ABEND CODE D002 AND MESSAGE CODE 051004

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

Description:

This document describes the situations which can lead to this error and also how to resolve it.

Solution:

If a SYSTEM is generated in SYSGEN with following definitions

  • for the SYSTEM statement : STATISTICS INTERVAL ........ TASK COLLECT ..... NOTRANSACTION

  • for the ADSO statement : DIALOG STATISTICS ON .....

then after recycle of the Central Version, ADSC, ADSA, MAPC compilers as well as ADSL, ADSM and ADS dialogs and ADSA applications won't work anymore.

They all will fail with error message PREVIOUS TASK ABENDED WITH ABEND CODE D002 AND MESSAGE CODE 051004.

In OLP, following messages will be found :


 DC051004 V67 T77 STATISTICS ARE NOT ENABLED CORRECTLY FOR BIND TRANSACTION STATISTICS.       
 DC027007 V67 T77 TASK:ADSL PROG:ADSOMAIN ABENDED WITH CODE D002 

The reason for these abends is that the ADSO statement in SYSGEN is set up to collect statistics.

However, these ADSO statistics require TRANSACTION statistics to be collected at SYSTEM level.

The SYSGEN compiler doesn't recognize this situation and will generate your SYSTEM without errors.

How to resolve this problem?
You can turn transaction statistics on dynamically by means of following DCMT command:


 	DCMT VARY STATISTICS TRANSACTION ON  

The system will respond with


 TRANSACTION STATISTICS WAS OFF       
 CHANGED TO ON 

Note that this DCMT command is only valid till shutdown.

To correct this permanently, you must do at least one of the following:-

  1. Turn off ADS statistics with

    MODIFY ADSO
      DIALOG STATISTICS OFF.


    - or -

  2. Turn transaction statistics on in the SYSTEM statement

    MOD SYSTEM nnn
      STATISTICS INTERVAL ....... TASK .....TRANSACTION.