ReasonCodeName method
Returns the name of the reason code with the given numeric value. It is useful to give clearer indications of error conditions to users. The name is still somewhat cryptic (for example, ReasonCodeName(2059) is MQRC_Q_MGR_NOT_AVAILABLE ), so where possible errors should be caught and replaced with descriptive text appropriate to the application.
Defined in: MQSession class
Syntax: errname$ = MQSession .ReasonCodeName ( reasonCode& )
Parameter: reasoncode& Long. The reason code for which the symbolic name is required.