Previous Topic: DEALLOCATENext Topic: RECEIVE-AND-WAIT


PREPARE-TO-RECEIVE

Purpose

Prepares to receive data from a remote program.

Syntax

►►─── PREPARE-TO-RECEIVE ───┬─ SYNC-LEVEL ◄─┬────── . ───────────────────────►◄
                            └─ FLUSH ───────┘

Parameters

SYNC-LEVEL

Processes data based on the current synchronization level. If the synchronization level is:

SYNC-LEVEL is the default for PREPARE-TO-RECEIVE

FLUSH

Sends all data in the communications buffer to the remote program.

Usage

PREPARE-TO-RECEIVE is issued by the dialog in send state in response to REQUEST-TO-SEND. PREPARE-TO-RECEIVE switches the local dialog to receive state.

Considerations

To check the status of a conversation test the system fields: REQUEST-TO-SEND and WHAT-RECEIVED.