+

Search Tips | Advanced Search

DefPriority (10-digit signed integer) on IBM i

Default message priority.

Local Model Alias Remote Cluster
X X X X X

This is the default priority for messages on the queue. This applies if PRQDEF is specified in the message descriptor when the message is put on the queue.

If there is more than one definition in the queue-name resolution path, the default priority for the message is taken from the value of this attribute in the first definition in the path at the time of the put operation. This could be:

  • An alias queue
  • A local queue
  • A local definition of a remote queue
  • A queue manager alias
  • A transmission queue (for example, the DefXmitQName queue)

The way in which a message is placed on a queue depends on the value of the queue's MsgDeliverySequence attribute:

  • If the MsgDeliverySequence attribute is MSPRIO, the logical position at which a message is placed on the queue is dependent on the value of the MDPRI field in the message descriptor.
  • If the MsgDeliverySequence attribute is MSFIFO, messages are placed on the queue as though they had a priority equal to the DefPriority of the resolved queue, regardless of the value of the MDPRI field in the message descriptor. However, the MDPRI field retains the value specified by the application that put the message. See the MsgDeliverySequence attribute described in Attributes for queues for more information.

Priorities are in the range zero (lowest) through MaxPriority (highest); see the MaxPriority attribute described in Attributes for the queue manager on IBM i.

To determine the value of this attribute, use the IADPRI selector with the MQINQ call.

Parent topic: Attributes for queues

Last updated: 2020-10-04