Home

 

Extended responses

 

Commands issued on z/OS generate extended responses only. There are three types of extended response:

Each command may generate one, or more, sets of responses. Each set of responses comprises one or more messages, numbered sequentially from 1 in the MsgSeqNumber field of the PCF header. The Control field of the last (or only) response in each set has the value MQCFC_LAST. For all other responses in the set, this value is MQCFC_NOT_LAST.

Any response may include one, or more, optional MQCFBS structures in which the Parameter field is set to MQBACF_RESPONSE_SET, the value being a response set identifier. Identifiers are unique and identify the set of responses which contain the response. For every set of responses, there is an MQCFBS structure that identifies it.

Extended responses have at least two parameter structures:

Many responses have additional parameter structures, and these are described in Extended responses to Inquire commands, Extended responses to commands other than Inquire, and Extended responses to commands using CommandScope.

We cannot determine in advance how many responses there will be in a set other than by getting responses until one with MQCFC_LAST is found. Neither can you determine in advance how many sets of responses there will be as any set may include MQBACF_RESPONSE_SET structures to indicate that additional sets will be generated.

 

Parent topic:

Using Programmable Command Formats


pc10470_


 

Home