Previous Topic: How the Environment Determines Which Statements Are PermittedNext Topic: Notes on Performing Cross-system SQL Operations


Destinations of SQL-related Error Messages

When an SQL statement is processed, it produces a return code that becomes the value of a variable named SQLCODE. When the value of the SQLCODE variable is not equal to 0, CA OPS/MVS writes error messages to a particular destination. The destination is dependent upon the environment from which the SQL statement was invoked.

When you use the ADDRESS SQL host environment to invoke an SQL statement from an AOF rule or OPS/REXX program, error messages are sent to the external data queue.

When you use the OPSQL command processor to invoke an SQL statement from: