MQCONN or MQCONNX used a queue manager name that is not valid or not known, or the parameter pointer is bad.
QUICK ANSWER
MQCONN or MQCONNX used a queue manager name that is not valid or not known, or the parameter pointer is bad.
LIKELY CAUSES, IN THE ORDER OF THIS ENTRY
The queue manager name passed is invalid or unknown.
A client names a queue manager group that is not supported or does not exist.
On z/OS IMS, CSQQDEFV has no matching name or no default entry, or the wrong CSQQDEFV module is loaded.
On z/OS CICS, Groupresync is specified but MQNAME holds a queue manager name instead of the queue sharing group name, or the queue manager is not in a queue sharing group.
On z/OS, an address space connects through a different adapter type from an existing MQ connection.
On connect, the QMgrName value is not valid or not known, or the parameter pointer is invalid. For clients it can mean a queue manager group name that is unsupported or does not exist. On z/OS there are CICS, IMS and adapter-mixing causes.
Typical causes
The queue manager name passed is invalid or unknown.
A client names a queue manager group that is not supported or does not exist.
On z/OS IMS, CSQQDEFV has no matching name or no default entry, or the wrong CSQQDEFV module is loaded.
On z/OS CICS, Groupresync is specified but MQNAME holds a queue manager name instead of the queue sharing group name, or the queue manager is not in a queue sharing group.
On z/OS, an address space connects through a different adapter type from an existing MQ connection.
How to fix it
Use an all-blank name if possible, or verify the name is valid.
For IMS, put the library with your CSQQDEFV before SCSQAUTH in STEPLIB or JOBLIB.
For CICS with Resyncmember(Groupresync), use the queue sharing group name in MQNAME.