Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

To produce ST22 dump after using TRY CATCH handling exception

johnmjd
Explorer
0 Kudos

Hi,

We have program which calls another program using PERFORM. In the calling program we have the exception handler using TRY CATCH. Whenever there is dump in the called program the system does not generate the ST22 dump and the control goes back to calling program and the job completes successfully. (Job finishes with exception error )

Is there a way to produce the ST22 dump in the called program then control goes back to calling program and the job completes successfully. This will help us to analyze the cause of the exception.

Thanks,

John

3 REPLIES 3

Sandra_Rossi
Active Contributor
0 Kudos

I don't get it: if there is a dump, it means that a dump is generated and you can view it using ST22... (except if you mean a kernel core dump).

Job completes successfully or Job finishes with exception error? I'm lost.

You should provide more details what happens exactly otherwise it's impossible to help.

Minimal reproducible example and screenshots will help people understand your question.

Ryan-Crosby
Active Contributor
0 Kudos

If you want to see the dump then remove the TRY/CATCH block in the calling program. The dump should provide enough context for you to determine and/or address any issues in the called program. If you simply catch the exception and do nothing then you will see nothing.

raymond_giuseppi
Active Contributor
0 Kudos

What you want to trigger is a runtime warning.

But (AFAIK) only certain memory bottlenecks can trigger them (provided certain system parameters such as em/sessionmem_warn are set).