Bracket protocol for IMS output
The output bracket and send/receive protocol used by IMS and the number of output messages sent per bracket are dependent on a variety of factors.
- The IMS message type
- Whether the message is to be MFS paged
- Whether the other half session supports the SCHEDULER model
- The output component specified during IMS system definition
- The bracket and ATTACH protocol associated with the originating input transaction
Within IMS, the protocols used for nonlast chains (pages) of MFS-paged output and the last (MFS-paged) or only chain of response mode, conversation mode, test mode, or command replies are predefined regardless of whether the originating input transaction and resulting output replies are synchronous (ATTACH) or asynchronous (SCHEDULER). This is also true for output resulting from input sent with ATTACH EB and for asynchronous output that must be sent ATTACH because the other half session lacks SCHEDULER support.
CD is used for all nonlast chains of MFS demand-paged messages, the last (MFS-paged) or only chain of test mode, and nonlast conversational mode messages. CD allows the paging operation or synchronous event between IMS and the other half session to continue.
EB ensures that the end of the synchronous event occurs by placing the session in reset state for the last (MFS-paged) or only chain of response mode replies, last conversational mode replies, and command replies. This is also true for replies resulting from input sent with ATTACH EB and for asynchronous output that must be sent ATTACH because the other half session lacks SCHEDULER support. All nonlast chains (pages) of MFS-autopaged messages are sent without either CD or EB.
- SINGLE1
- Asynchronous output for this component is sent one message per bracket. Each message begins a bracket (if necessary) and always ends a bracket.
- SINGLE2
- Asynchronous output for this component is sent one message at a time with the VTAM® begin-bracket (if necessary) and change-direction indicators to allow the receiving subsystem to optionally send its communication traffic.
- MULT1
- All asynchronous messages for a given LTERM are sent before the bracket is ended. Traffic is sent BB (if necessary), message1, message2,...messageN, EB. EB occurs after the last message for the LTERM is acknowledged and dequeued.
- MULT2
- All asynchronous messages for a given LTERM are sent before change-direction is sent. Traffic is sent BB (if necessary), message1, message2...messageN, CD. CD occurs after the last message for the LTERM is acknowledged and dequeued.
- Require extra transmissions to occur in order to acquire the flow or to end the bracket
- Cause unnecessary bracket contention error recovery operations
- Produce output protocols unacceptable to the receiving subsystem.
- SINGLE1
- Use of
SINGLE1results in EB on each message and might cause bracket contention if the other subsystem has data to send.EB on each message can cause process errors within the other subsystem if the transaction must reply synchronously within the initiating bracket. An error of this type can occur in the receiving subsystem when a
SINGLE1component is used to send response mode, conversation, or test mode messages, or IMS commands from one IMS subsystem to another. - SINGLE2 or MULT2
- Change-direction sent on messages from a component defined as
SINGLE2might result in unnecessary transmissions to end the bracket when either no output is available or no reply is available within the other subsystem. - MULT1 or MULT2
- Messages sent on components defined as
MULT1ORMULT2indicate change-direction or end-bracket only after the last message on a queue has been dequeued. Therefore, extra transmissions might result if the other subsystem must signal for the flow to return synchronous replies.
For components defined as MULT1 and MULT2, IMS suppresses the queue rotation
that normally occurs between output messages. This
suppression allows all messages from a queue selected for output to
be sent before IMS initiates
output on other queues. Selection of the next queue with available
output occurs when the previous queue has emptied or when input changes
the active output queue. The queues are not rotated if an LUSTATUS
- queue empty or another input that indicates change-direction
occurs for the same queue.
The following tables summarize the bracket and send/receive indicators that are acceptable for IMS output messages.
- INB
- Indicates that synchronous or asynchronous output occurs within the same bracket as the previous input
- BETB
- Indicates that IMS initiates output while in a between-brackets state
- BB
- Begin-bracket
- EB
- End-bracket
- CD
- Change-direction (allowed on last- or only-in-chain)
- N
- No bracket or send/receive indicators
| Message type sent using attach scheduler | SINGLE1 msg.init INB BETB | SINGLE2 msg.init INB BETB | MULT1/21 msg.init INB BETB |
|---|---|---|---|
| MFS demand-paged output:First SNA chain (ATTACH SCHEDULER)2 | EBBB/EB | EBBB/EB | EBBB/EB |
| MFS demand-paged output:Nonlast page | |||
| MFS demand-paged output:Last page if OLP3 | CD | CD | CD |
| MFS demand-paged output:Last page without OLP (See appropriate message type) | |||
| MFS autopaged output: First page | NBB | NBB | NBB |
| MFS autopaged output: Nonfirst, nonlast page | N | N | N |
| MFS autopaged output: Last page (See appropriate message type) | |||
| Response mode output (Including Fast Path) | EB | EB | EB |
| Nonlast conversational output message | CD | CD | CD |
| Last conversational output message | EB | EB | EB |
| Message switch output | EBBB/EB | CDBB/CD | NBB |
| Command output: /FOR, /DIS, /RDIS | EBBB/EB | CDBB/CD | NBB |
Command output: /TEST4 |
CD | CD | CD |
| Other Command output | EB | EB | EB |
| Test mode output4 | CD | CD | CD |
| None of the above message types - asynchronous | EBBB/EB | CDBB/CD | NBB |
- LUSTATUS - queue empty is used at the end of a queue
to send EB for
MULT1and CD forMULT2. EB is sent when an ERP backout has reset the DFC and ATTACH states to between-brackets and nocomponent 1(COMPT1) is defined during IMS system definition. Also, the BB indicator in the BETB column occurs only for the first message or MFS page that must initiate an output bracket asynchronously. - Although IMS is between-brackets after having sent stand-alone ATTACH SCHEDULER for response mode, Fast Path, or conversational demand-paged output, IMS does not accept input until the preceding output is successfully transmitted and dequeued using the appropriate paging requests.
- MFS operator logical paging (OLP) is in effect if the MOD specifies PAGE=YES and autopaged output is not indicated in the MFS system control area (SCA).
- Applies to test
echo
mode only. Not applicable to/TEST MFS.
| Message type sent using ATTACH (no SCHEDULER) | SINGLE1 msg.init INB BETB | SINGLE2 msg.init INB BETB | MULT1/21 msg.init INB BETB |
|---|---|---|---|
| MFS demand-paged output: First SNA chain (ATTACH) | CD | CD | CD |
| MFS demand-paged output: Nonlast page, last page if OLP3 | CD | CD | CD |
| MFS demand-paged output: Last page without OLP (See appropriate message type) | |||
| MFS autopaged output: First page | N | N | N |
| MFS autopaged output: Nonfirst, nonlast page | N | N | N |
| MFS autopaged output: Last page (See appropriate message type) | |||
| Response mode output (including Fast Path)5 | EB | EB | EB |
| Nonlast conversational message | CD | CD | CD |
| Last conversational message | EB | EB | EB |
| Nonresponse, nonconversational output (No SCHEDULER model defined for other half session) | EB BB/EB | EB BB/EB | EB BB/EB |
| ATTACH SYSMSG | BB/EB | BB/CD | BB |
| Command output | |||
| Command output: /TEST4 | CD | CD | CD |
| Other command output (except /FOR, /DIS, and /RDIS)6 | EB | EB | EB |
| Test mode output4 | CD | CD | CD |
- LUSTATUS - queue empty is used at the end of a queue to send EB
for
MULT1and CD forMULT2. EB is sent when an ERP backout has reset the DFC and ATTACH states to between-brackets and nocomponent 1(COMPT1) is defined during IMS system definition. Also, the BB indicator in the BETB column occurs only for the first message or MFS page that must initiate an output bracket asynchronously. - Although IMS is between-brackets after having sent stand-alone ATTACH SCHEDULER for response mode, Fast Path, or conversational demand-paged output, IMS does not accept input until the preceding output is successfully transmitted and dequeued using the appropriate paging requests.
- MFS operator logical paging (OLP) is in effect if the MOD specifies PAGE=YES and autopaged output is not indicated in the MFS system control area (SCA).
- Applies to test
echo
mode only. Not applicable to/TEST MFS. - Response mode operation always occurs for input transactions that are directly attached.
- See LUSTATUS protocol for
more information on
/DISPLAY,/RDISPLAY, and/FORMATcommand output.
| Other output message types | SINGLE1 msg.init INB BETB | SINGLE2 msg.init INB BETB | MULT1/21 msg.init INB BETB |
|---|---|---|---|
| VTAM command/indicator2 | |||
| FMH7 (ERP) messages: During conversation | CD | CD | CD |
| FMH7 (ERP) messages: During test mode | CD | CD | CD |
| FMH7 (ERP) messages: Other3 | EB BB/EB | CD BB/CD | Note 4 |
| QSTATUS (QMODEL) | Note 5 | Note 5 | Note 5 |
- LUSTATUS - queue empty is used at the end of a queue to send EB
for
MULT1and CD forMULT2. EB is sent when an ERP backout has reset the DFC and ATTACH states to between-brackets and nocomponent 1(COMPT1) is defined during IMS system definition. Also, the BB indicator in the BETB column occurs only for the first message or MFS page that must initiate an output bracket asynchronously. BISis sent without CD or EB.CHASEis always sent CD.- An FMH7 requests the protocol associated with the resulting between-brackets reset state of the last committed input component after backout of the DFC and ATTACH states due to the ERP operation.
- FMH7 is sent with EB for
MULT1, CD forMULT2. - CD/RQE1 is sent on a QSTATUS that results
from an invalid cursor in an MFS DPM demand-page request for output.
CD/RQE2 or EB/RQD2 is sent on QSTATUS, which results from the receipt
of QPURGE during demand-paged output. CD/RQE2 is sent: 1) when in IMS conversation or test mode or
2) when the input is sent with ATTACH SCHEDULER and the associated
output component was
SINGLE2orMULT2. All other cases result in EB/RQD2.