Receiving a response

8

When an application program uses SEND POST=SCHED macroinstructions, the application program can take direct action to receive each response; that is, for each response, it can issue RECEIVE RTYPE=RESP. Instead, a program can contain a RESP exit routine (at 8), which is scheduled each time a response is received. The RESP exit routine can notify the mainline program of receipt of the response, perhaps by posting an event control block (ECB). The mainline program must then correlate the response with the SEND operation that produced it.