MainframeKit

2086

MQRC_UNKNOWN_OBJECT_Q_MGR (X'0826')MQ REASON CODE

The queue manager name given in the object descriptor is not valid, or does not match when opening the queue manager object itself.

MOST LIKELY

ObjectQMgrName contains invalid characters or is not padded properly.

FIRST CHECK

Leave ObjectQMgrName blank, or start it with a null, to mean the local queue manager.

TRY IT ▸

MainframeKit assistant

What it means

The ObjectQMgrName field on MQOPEN or MQPUT1 breaks MQ naming rules, or the program opens the queue manager object (to inquire on it) but names a queue manager other than the local one.

Typical causes

  • ObjectQMgrName contains invalid characters or is not padded properly.
  • The program opens the queue manager object with a non-local queue manager name.
  • Garbage left in the field because the structure was not initialised.

How to fix it

  1. Leave ObjectQMgrName blank, or start it with a null, to mean the local queue manager.
  2. Pad names with blanks or end them with a null as the language needs.
  3. Initialise the MQOD structure from its default values before setting fields.

Example

Illustrative only; names and values are invented.

MQOPEN failed  CompCode=2  Reason=2086  ObjectQMgrName='QM 01'