mqrc (MQ return code)

Display information about return codes.

Purpose

You can use the mqrc command to display information about symbols, return codes, and AMQ messages. You can specify a range of return codes or AMQ messages, as well as specifying specific return codes or AMQ messages.

Numeric arguments are interpreted as decimal if they start with a digit 1 - 9, or hex if prefixed with 0x.

Syntax

Read syntax diagramSkip visual syntax diagram-a-breturnCode-rreturnCodeAMQmessage-mAMQmessage-R-ffirst-llast1-M-ffirst-llast1-ssymbol
Notes:
  • 1 If there is a problem with a message within a range, an indication is displayed before the message text. ? is displayed if there are no matching return codes for the message. ! is displayed if the message severity is different to the return code severity.

Parameters

returnCode
The return code to display
AMQmessage
The AMQ message to display
symbol
The symbol to display
-a
Try all severities to find message text
-b
Display messages without extended information
-f first
First number in a range
-l last
Last number in a range
-m AMQmessage
The AMQ message to list
-M
Display AMQ messages in a range
-r returnCode
The return code to display
-R
Display all return codes. If used with the -f and -l parameters, -R displays the return codes within a range.
-s symbol
The symbol to display

Examples

  1. This command displays AMQ message 5005:
    
    mqrc AMQ5005
    
  2. This command displays return codes in the range 2505 - 2530:
    
    mqrc -R -f 2505 -l 2530