MainframeKit

2058

MQRC_Q_MGR_NAME_ERROR (X'080A')MQ REASON CODE

MQCONN or MQCONNX named a queue manager that is not valid or not known to the program's environment.

MOST LIKELY

A typo or wrong case in the queue manager name, or the name of a different environment.

FIRST CHECK

Check the exact name the program passes, including case and padding.

TRY IT ▸

MainframeKit assistant

What it means

The name passed on connect does not match a queue manager the program can reach, or the parameter itself is bad. For clients it can mean a queue manager group name with no matching entry. On z/OS it has several adapter-specific causes, for CICS, IMS and batch.

Typical causes

  • A typo or wrong case in the queue manager name, or the name of a different environment.
  • A client channel table has no entry for the name or group the program asks for.
  • On z/OS IMS, the CSQQDEFV table does not contain the name, has no default, or the wrong copy is loaded.
  • On z/OS CICS, group resync is set but MQNAME holds a queue manager name instead of the queue sharing group name.
  • On z/OS, one address space tries to connect through a different adapter type than an existing connection.

How to fix it

  1. Check the exact name the program passes, including case and padding.
  2. Use a blank name if the program should connect to the default queue manager.
  3. For clients, check the CCDT or connection settings for that name.
  4. On z/OS IMS, check which CSQQDEFV module is loaded and the library order in STEPLIB or JOBLIB.
  5. On z/OS CICS with group resync, put the queue sharing group name in MQNAME.

Example

Illustrative only; names and values are invented.

MQCONN failed  CompCode=2  Reason=2058  QMgrName=QM0l