Programming Guide


Contains an engine-independent error or status message


@dmretmsg is cleared before Panther executes a new DBMS command. If the command fails because of an error detected either by the engine or by Panther's data base driver, Panther writes an error message to @dmretmsg describing the failure. These messages are defined in dmerror.h and are engine-independent. Refer to Table 12-3 for a listing of the codes and messages.

When @dmretcode is 0, @dmretmsg will be empty.


proc dbi_errhandle (stmt, engine, flag)
msg emsg "Statement " stmt " failed." "%N"\
@dmretmsg "%N" @dmengerrmsg
return 1