PREVIOUS TASK ABENDED WITH ABEND CODE D002 AND MESSAGE CODE 051004 in ADS environment
search cancel

PREVIOUS TASK ABENDED WITH ABEND CODE D002 AND MESSAGE CODE 051004 in ADS environment

book

Article ID: 17651

calendar_today

Updated On:

Products

IDMS IDMS - Database IDMS - ADS

Issue/Introduction

PREVIOUS TASK ABENDED WITH ABEND CODE D002 AND MESSAGE CODE 051004

in ADS and mapping compilers or dialogs.

Environment

Release: All supported releases.
Component: ADS.

Resolution

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 the SYSTEM without errors.

How to resolve this problem?

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 until shutdown.

To correct this permanently, 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.