Product Documentation

FairCom ISAM for C

Previous Topic

Next Topic

SA_ERRMSG

Returns an SA ADMIN associated error message.

Declaration

pTEXT SA_ERRMSG(COUNT errcode)

Description

errcode is an SA ADMIN API error code.

Return

SA_ERRMSG() returns the error message associated with an SA ADMIN API error code.

Example psuedocode

SA_LOGON("ADMIN", "ADMIN", NULL, "FAIRCOMS");

...

if ((rc = SA_FILES(...) !=0) {

/* some error occured */

ctrt_printf("SA_FILES encountered the following error code(%n):\n, %s\n",

rc, SA_ERRMSG(rc));

}

...

SA_LOGOFF();

TOCIndex