Handling SQL error codes
You can use the subroutine DSNTIAR or the GET DIAGNOSTICS statement to convert an SQL return code into a text message.
Procedure
To handle SQL error codes:
Take action based on the programming language that you
use.
You can use the subroutine DSNTIAR or the GET DIAGNOSTICS statement to convert an SQL return code into a text message.
To handle SQL error codes: