Returns the message file library name for the top-level (i.e. most recent) message added to the error handle provided. This message attribute only pertains to messages returned from the iSeries™ server. The library name is the name of the iSeries library containing the message file for the message.
unsigned int CWB_ENTRY cwbSV_GetErrLibName(
cwbSV_ErrHandle errorHandle,
char *libraryName,
unsigned long libraryNameLength,
unsigned long *returnLength);
The following list shows common return values.
iSeries messages may be added to the error handle when using the cwbRC_CallPgm() and cwbRC_RunCmd() API's. In these cases, you can use this API to retrieve the message file library name for the iSeries messages contained in the error handle. If there is no message file library name attribute for the message, return code CWBSV_ATTRIBUTE_NOT_SET will be returned.