Receiving next available data

The APPCCMD CONTROL=RECEIVE, QUALIFY=ANY macroinstruction completes when data arrives on any of the conversations that is in continue-any mode. When APPCCMD CONTROL=RECEIVE, QUALIFY=ANY completes, the conversation identifier (CONVID) field in the RPL extension is set to indicate on which conversation the data is received.

Typically, the APPCCMD CONTROL=RECEIVE, QUALIFY=ANY macroinstruction is issued with CONMODE=CS, which places the conversation in continue-specific mode after the APPCCMD CONTROL=RECEIVE, QUALIFY=ANY macroinstruction completes. Once the conversation is in continue-specific mode, only APPCCMD CONTROL=RECEIVE, QUALIFY=SPEC macroinstructions can be used to receive data on the conversation. The application program issues APPCCMD macroinstructions to process a transaction. When the transaction is complete, the application program can return the conversation to continue-any mode.