DSNH20228I A STACKED DIAGNOSTICS AREA IS NOT AVAILABLE

Explanation

A stacked diagnostics area is only accessible from within a handler in a native SQL routine.

This error can occur when the STACKED keyword is specified in a GET DIAGNOSTICS statement outside of an SQL procedure.

System action

The statement was processed.

Programmer response

Modify the application logic so that the STACKED diagnostic is only accessed from within a handler. If the routine is an external SQL procedure, or a host language program then the STACKED keyword cannot be used.