Programming Guide



@dmretmsg

Contains an engine-independent error or status message

Description

@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.

If @dmretcode is 0, @dmretmsg is always empty.

Example

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