Returns the message file library name for the message identified by the index 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_GetErrLibNameIndexed(
cwbSV_ErrHandle errorHandle,
unsigned long index,
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. An index value of 1 works with the lowest-level (i.e. oldest) message in the error handle. An index value equal to the count returned by the cwbSV_GetErrCount() API works with the top-level (i.e. most recent) message in the error handle. Index values less than 1 act as if 1 was passed in. Index values greater than the number of messages contained in the error handle act as if the returned count value from the cwbSV_GetErrCount() API was passed in.