Previous Topic: Send Data to a Receiver

Next Topic: Deactivate the Receiver ID


Receive Data

An NCL process can receive data directed to its defined receiver ID using the RECEIVE option of the &PPI verb. That data can come from other NCL processes, including other systems, or from other programs.

Standard parsing options, as on the other &xxxREAD verbs, can be used. Alternatively, MDOs can be received.

The WAIT operand allows the procedure to indicate whether or not it will wait if no data is available, and, if no data is available, how long it will wait. Alternatively, the process can use WAIT=NOTIFY, to cause a message to be delivered to the dependent response queue when data arrives, thus allowing other work to be performed. When the notification arrives via &INTREAD, the process can reissue the &PPI RECEIVE.