Receiving input without specifying a conversation

An application program might not know which conversation will have data ready to receive next. Rather than issuing an APPCCMD CONTROL=RECEIVE, QUALIFY=SPEC|ISPEC macroinstruction for each conversation, VTAM® provides a way for the application program to issue a single macroinstruction to receive data on the next conversation that has data available to be received.

To receive the next available data on any conversation, the conversations are first placed in continue-any mode with the CONMODE operand of an APPCCMD macroinstruction such as APPCCMD CONTROL=PREPRCV, QUALIFY=FLUSH. Then, the application program issues APPCCMD CONTROL=RECEIVE, QUALIFY=ANY|IANY.