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
- Leave ObjectQMgrName blank, or start it with a null, to mean the local queue manager.
- Pad names with blanks or end them with a null as the language needs.
- 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'