[z/OS]

DEFINE MAXSMSGS

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.

Using MQSC commands

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

IBM® i UNIX and Linux® Windows z/OS®
      2CR

For an explanation of the symbols in the z/OS column, see Using commands on z/OS.

Synonym: DEF MAXSM

DEFINE MAXSMSGS

Read syntax diagramSkip visual syntax diagram DEFINE MAXSMSGS ( integer ) CMDSCOPE(' ')CMDSCOPE(qmgr-name)1CMDSCOPE(*)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. You 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 is executed when the queue manager is a member of a queue-sharing group.
' '
The command is executed on the queue manager on which it was entered. This is the default value.
qmgr-name
The command is executed on the queue manager you specify, providing the queue manager is active within the queue-sharing group.

You 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 is executed 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.