This document describes the situations which can lead to this error and also how to resolve it.
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:-
- Turn off ADS statistics with
DIALOG STATISTICS OFF.
- or -
- Turn transaction statistics on in the SYSTEM statement
MOD SYSTEM nnn
STATISTICS INTERVAL ....... TASK .....TRANSACTION.