(Read-only) After the database reports an error and SQLCODE has a nonzero value, the SQLERRM option usually contains text that explains the problem.
You can set the SQLMESSAGES option to YES
to send the value of SQLERRM to the current output file automatically.