If STATUS is set to SAI__OK on entry, an error report to this effect is made on behalf of the application and STATUS is returned set to ERR__BADOK; the given message is still reported and has status ERR__UNSET associated with it.
If an output error occurs, STATUS is returned set to ERR__OPTER.
MERS (MSG and ERR) Message and Error Reporting Systems