SQLMESSAGES
The SQLMESSAGES option controls whether error messages are sent to the current output file.
Syntax
SQLMESSAGES = {YES|NO}
Parameters
- YES
-
Error messages are sent to the current output file.
- NO
-
(Default) Error messages are only stored as values of SQLERRM.
Usage Notes
Typical Usage
You want to set SQLMESSAGES to YES
while you are developing an application so that you can diagnose errors quickly. When your application is in use, you probably want it to capture and handle errors in a different manner with SQLMESSAGES set to NO
.