Mainframe Path Start learning free
CoreError and abend codes2035

MQRC 2035 — not authorized

An MQI call was refused by security. Find which call failed, under which user ID, against which object.

What happened

An application issued an MQI call — usually MQCONN or MQOPEN — and got completion code 2 (MQCC_FAILED) with reason code 2035, MQRC_NOT_AUTHORIZED.

Typical application log (illustrative)
MQOPEN failed  CompCode=2  Reason=2035
Queue: PAY.REQUEST   QMgr: QM01

Job log may also show:
ICH408I USER(PAYBAT1 ) ... QM01.PAY.REQUEST CL(MQQUEUE )
  INSUFFICIENT ACCESS AUTHORITY

What it means

The queue manager asked its security manager whether this user ID may do this operation and was told no. On z/OS that is usually RACF, with profiles in MQ classes such as MQCONN (connecting), MQQUEUE (opening queues) and MQADMIN. For client connections, channel rules can also block the connection itself. Nothing was put or got.

Typical causes

Symptoms

Where to look

How to diagnose

  1. Find which call failed: MQCONN, MQOPEN or another.
  2. Note the exact object name and the open options used — they decide the access needed.
  3. Identify the user ID that was checked, using ICH408I if present.
  4. Ask the security team which profile protects the object and what access the ID has.
  5. For a client, check channel authentication rules and the channel's user ID settings.
  6. Check whether a recent security change was made but not refreshed.

How to fix

Request the correct access for the right user ID, ideally via a group. After RACF changes, the security team refreshes the RACF classes and the MQ administrator issues REFRESH SECURITY on the queue manager so the cached decision is dropped. If the program opens with more options than it needs, fix the program instead. Then rerun the job or restart the transaction.

How to prevent

Production considerations

Interview question

A batch job gets reason code 2035 on MQOPEN. What do you check?

Stuck on something else?
Ask the community or search the full course.

Ask a question