-
Problem returning error message from the media management library
I am trying to return an error message and the number to the db2 clp from the media management library being used for backup.
typedef struct Return_code {
sqlint32 return_code,
char description[30],
void *reserve,
} Return_code;
I am using the following structure(given in db2ha-vendAPIs.pdf) and filling the description field with around 20 character string. However on the db2 clp screen I just get the following message
"SQL2062N An error occurred while accessing media "library name". Reason Code: "number"
The number is the number that I am filling in the return_code field of the structure above.
Does anyone know as to how to print the error message along with the error number on the CLP.
Thanks,
-D