DEFINE MAXSMSGS on z/OS

Use the MQSC command DEFINE MAXSMSGS to define the maximum number of messages that a task can get or put within a single unit of recovery.


Use MQSC commands

For information on how we use MQSC commands, see Performing local administration tasks using MQSC commands.

We can issue this command from sources 2CR. For an explanation of the source symbols, see Use commands on z/OSĀ®.

Synonym: DEF MAXSM

DEFINE MAXSMSGS

DEFINE MAXSMSGS ( integer ) CMDSCOPE(' ')CMDSCOPE(qmgr-name)
  • 1
  • CMDSCOPE(*)1
  • Notes:

    • 1 Valid only when the queue manager is a member of a queue sharing group.


    Usage notes

    1. This command is valid only on z/OS and is retained for compatibility with earlier releases, although it can no longer be issued from the CSQINP1 initialization input data set. You should use the MAXUMSGS parameter of the ALTER QMGR command instead.
    2. We can issue the DEFINE MAXSMSGS command to change the number of messages allowed. Once a value is set, it is preserved during a queue manager restart.


    Parameter descriptions for DEFINE MAXSMSGS

      (integer)
      The maximum number of messages that a task can get or put within a single unit of recovery. This value must be an integer in the range 1 through 999999999. The default value is 10000.

      The number includes any trigger messages and report messages generated within the same unit of recovery.

      CMDSCOPE
      This parameter specifies how the command runs when the queue manager is a member of a queue sharing group.

        ' '
        The command runs on the queue manager on which it was entered. This is the default value.

        qmgr-name
        The command runs on the queue manager you specify, providing the queue manager is active within the queue sharing group.

        We can specify a queue manager name other than the queue manager on which it was entered, only if you are using a shared queue environment and if the command server is enabled.

        *
        The command runs on the local queue manager and is also passed to every active queue manager in the queue sharing group. The effect of this is the same as entering the command on every queue manager in the queue sharing group.