HP NonStop SQL/MX Messages Manual page 21

Table of Contents

Advertisement

1
Message Handling
NonStop SQL/MX reports exception condition messages at the SQL/MX conversational
interface (MXCI) window, in SQL preprocessor and compiler listings, and during the
execution of embedded SQL programs.
You obtain the error messages that result from the execution of an SQL statement
within an embedded program in C or COBOL by using the GET DIAGNOSTICS
statement to access the SQL diagnostics area. For detailed information about
accessing SQL/MX messages in a programmatic environment, see the SQL/MP
Programming Manual for C.
Most SQL/MX exception condition messages describe error conditions for which
recovery action is required. Some messages are warnings that provide information for
which no action is required.
Error messages that appear in response to SQL/MX commands are logged to the
MXCI application's log file if you have used the LOG command to request them.
The format of an SQL/MX error is "*** ERROR" followed by the error number in
brackets, and the descriptive text. Use the error number shown to find information
about a particular error in this manual. For example, information for SQL/MX error 1125
can be found under "SQL 1125."
Messages and events are listed in this manual in numeric order, broken down by the
component that produced them.
Viewing SQL/MX Messages
The message key is a sequential SQL/MX message number that is returned
automatically by NonStop SQL/MX when an exception condition occurs. For example,
this message might be displayed within your application development tool while you
prepare an embedded SQL program:
*** ERROR[1000] A syntax error occurred.
This message number is the SQLCODE value (without the sign). In this manual, you
will find this message information for ERROR[1000]:
SQL 1000
1000 A syntax error occurred.
Cause. You specified a statement with incorrect syntax.
Effect. The SQL/MX statement fails.
Recovery. Correct the syntax and resubmit.
From MXCI, use the ERROR command to:
Look up a message by its SQLCODE.
HP NonStop SQL/MX Messages Manual—640324-001
1 -1

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nonstop sql/mx 3.0

Table of Contents