-20228 A STACKED DIAGNOSTICS AREA IS NOT AVAILABLE
Explanation
A stacked diagnostics area is only accessible from within a handler in a native SQL routine.
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, STACKED cannot be used.
SQLSTATE
0Z002