Resetting the active process: RAP FM header

The reset attached process (RAP) FM header is used to reset the receiving half session's active process and all session states, except bracket and send/receive states, to the equivalent of a between-brackets state.

IMS receives the RAP FM header, but does not send it. After receiving the RAP request, IMS responds with an ATTACH SCHEDULER, or with LUSTATUS - queue empty if no output is available to be sent. If the RAP request is received during an IMS demand-paged output message, the message is dequeued (committed) before a check for more output is made. The IMS operation performed for the RAP request is the same as for the NEXTMSG operator control request provided with MFS input or the PA2 request from a 3270 device.

The RAP request must be sent without data and must indicate change-direction, RQD2, or RQE2.

The following figure illustrates the use of the RAP FM header.

Figure 1. RAP FM header example
RAP CD RQE2: dequeue any demand-page output in progress. Then, if more output is available: ATTACH DPN=....Or, if no output exists, LUSTATUS - queue empty CD/EB.