From Richard Spitz:
*
* Hi folks,
*
* just a couple of weeks ago, there was a thread in this group about how
* to get the full error message in an ESQL/C program, using the rgetmsg()
* function. At that point, I was SURE I'd NEVER have to use this. Well,...
*
* This function works fine, however, the output is like:
* -217: Column (%s) not found in any table in the query.
*
* Could somebody please re-post or preferably mail me the solution on how
* to get the "%s" resolved?
From what I've found playing around with the err_get in 4gl is that
when an error occurs, the replacable parameters to be put into the
string returned by err_get() ( rgetmsg() for ESQL/C ) are found in the
sqlca.sqlerrm variable.
Hope this helps,
Robert Minter |Data Systems Support| \\\\\\_///
Programmer, Software Development | Orange, CA | ( _ _ )
internet: rob@dssmktg.com | Tel: 714.771.0454 | (| ^ |)
bangpath: uunet.uu.net!dssmktg!rob| Fax: 714.771.3028 | \\`-'/
I used to not know, now I know I don't know. \\_/