from DISPLAY QLOCAL, user messages, commands" /> Messages from DISPLAY commands

 

Messages from DISPLAY commands

The following examples show the replies from some DISPLAY commands.

 

Finding out the name of the dead-letter queue

If you want to find out the name of the dead-letter queue for a queue manager, issue this command from an application program:

  DISPLAY QMGR DEADQ

The following three user messages are returned, from which we can extract the required name:

CSQN205I   COUNT=       3, RETURN=00000000, REASON=00000000
CSQM409I +CSQ1 QMNAME(CSQ1) DEADQ(SYSTEM.DEAD.QUEUE                    )
CSQ9022I +CSQ1 CSQMDRTS ' DISPLAY QMGR' NORMAL COMPLETION

 

Messages from the DISPLAY QUEUE command

The following examples show how the results from a command depend on the attributes specified in that command.

Example 1

You define a local queue using the command:

  DEFINE QLOCAL(Q1) DESCR('A sample queue') GET(ENABLED) SHARE

If you issue the following command from an application program:

  DISPLAY QUEUE(Q1) SHARE GET DESCR

these three user messages are returned:

CSQN205I   COUNT=       3, RETURN=00000000, REASON=00000000
CSQM401I +CSQ1 QUEUE(Q1                                              ) TYPE(
QLOCAL  ) QSGDISP(QMGR      )
          DESCR(A sample queue
        ) SHARE   GET(ENABLED   )
CSQ9022I +CSQ1 CSQMDMSG ' DISPLAY QUEUE' NORMAL COMPLETION
Note:
The second message, CSQM401I, is shown here occupying four lines.
Example 2

Two queues have names beginning with the letter A:

  • A1 is a local queue with its PUT attribute set to DISABLED.

  • A2 is a remote queue with its PUT attribute set to ENABLED.

If you issue the following command from an application program:

  DISPLAY QUEUE(A*) PUT

these four user messages are returned:

CSQN205I   COUNT=       4, RETURN=00000000, REASON=00000000
CSQM401I +CSQ1 QUEUE(A1                                              ) TYPE(
QLOCAL  ) QSGDISP(QMGR      )
          PUT(DISABLED  )
CSQM406I +CSQ1 QUEUE(A2                                              ) TYPE(
QREMOTE ) PUT(ENABLED   )
CSQ9022I +CSQ1 CSQMDMSG ' DISPLAY QUEUE' NORMAL COMPLETION
Note:
The second and third messages, CSQM401I and CSQM406I, are shown here occupying three and two lines respectively.

 

Messages from the DISPLAY NAMELIST command

You define a namelist using the command:

  DEFINE NAMELIST(N1) NAMES(Q1,SAMPLE_QUEUE)

If you issue the following command from an application program:

  DISPLAY NAMELIST(N1) NAMES NAMCOUNT

the following three user messages are returned:

CSQN205I   COUNT=       3, RETURN=00000000, REASON=00000000
CSQM407I +CSQ1 NAMELIST(N1                                              ) QS
GDISP(QMGR      ) NAMCOUNT(         2) NAMES(Q1
 ,SAMPLE_QUEUE                                    )
CSQ9022I +CSQ1 CSQMDMSG ' DISPLAY NAMELIST' NORMAL COMPLETION
Note:
The second message, CSQM407I, is shown here occupying three lines.