If you use the mqrc tool you can discover what reason code 2058 means. It means MQRC_Q_MGR_NAME_ERROR.
You will need to tell us a little bit more about how you ran the sample. Please can you provide the command you ran to invoke it, and/or the response file you used. We are interested to see how your provided the queue manager name, and whether it matches the name of the queue manager you intended to connect to.
Cheers,
Morag
------------------------------
Morag Hughson
MQ Technical Education Specialist
MQGem Software Limited
Website:
https://www.mqgem.com------------------------------