Re: QSH Error Trapping
I am running code in version 6 and 7.
The code is actually invoked by Java, which runs SQL ALTER statement.
The issue was raised - when their job was cancelled when they tried to run ALTER command which resulted an inquiry message of "....might cause data loss" . (THIS IS A ONLY GUESS)
What happened is that their job was cancelled since there was no "Reply List Entry" that will override the "cancel" with "ignore"
They tried hard to provide the CPxxxxxx error code (so I will add it to the "Reply List Entry" - but could not find a way to get it.
The only information they could get was "error code 10".
So - I simulated their ALTER command in CL running QSH, with the above code, and got the same "error code 10" with a little more information of
in the log file.
Still - there was no sign for the CPxxxxx message - anywhere....
Thank you very much for your help
I am running code in version 6 and 7.
The code is actually invoked by Java, which runs SQL ALTER statement.
The issue was raised - when their job was cancelled when they tried to run ALTER command which resulted an inquiry message of "....might cause data loss" . (THIS IS A ONLY GUESS)
What happened is that their job was cancelled since there was no "Reply List Entry" that will override the "cancel" with "ignore"
They tried hard to provide the CPxxxxxx error code (so I will add it to the "Reply List Entry" - but could not find a way to get it.
The only information they could get was "error code 10".
So - I simulated their ALTER command in CL running QSH, with the above code, and got the same "error code 10" with a little more information of
**** CLI ERROR *****
SQLSTATE: 57014
NATIVE ERROR CODE: -952
Processing of the SQL statement ended. Reason code 10.
SQLSTATE: 57014
NATIVE ERROR CODE: -952
Processing of the SQL statement ended. Reason code 10.
Still - there was no sign for the CPxxxxx message - anywhere....
Thank you very much for your help




Comment