Tell us about SQLCODE and SQLERRM.
SQLCODE
and SQLERRM
are used to trace exceptions that are not explicitly handled in the program. These are globally defined variables. SQLCODE
returns the error code while SQLERRM
returns the corresponding error message.