PREVIOUS TASK ABENDED WITH ABEND CODE D002 AND MESSAGE CODE 051004
in ADS and mapping compilers or dialogs.
Release: All supported releases.
Component: ADS.
If a SYSTEM is generated in SYSGEN with following definitions
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:-
MODIFY ADSO DIALOG STATISTICS OFF.- or -
MOD SYSTEM nnn STATISTICS INTERVAL ....... TASK .....TRANSACTION.