Previous Topic: Changing Direction: Send to ReceiveNext Topic: Changing Direction: Receive to Send


Receiving Data

RECEIVE_AND_WAIT DATA
                 LENGTH
                 FILL
                 WHAT_RECEIVED
                 RESOURCE
                 RETURN_CODE

To read data sent from another LU, your program must issue some form of read request (#TREQ READ, GET, PUTGET, or WRITREAD). CA IDMS/DC buffers all input received from a logical unit. Your program can issue multiple read statements until all of the data in the buffer has been transferred to your program.

Parameters Applying to Incoming Data

The following parameters apply to incoming data:

If all of the input has been transferred from the data buffer to your program on completion of a read request, the data-complete-flag (UIODC) will be set on. In general, you should always continue issuing read requests until the change-direction (UIOCD) or last (UIOLST) flag has been set.

LU6.2 Conversations

For LU6.2 conversations, CA IDMS/DC can receive only one type of input with each request. For example, if CA IDMS/DC receives input that contains data, a change of direction indicator, and a confirm request, you must issue two read requests in order to get all the information you need:

LU6.2 data is always passed in LU6.2 logical records, made up of a header and the user data. The header consists of a 2-byte length field and a 2-byte generalized data stream ID (GDS ID).

LU6.2 Mapped Conversations

During LU6.2 mapped conversations, CA IDMS/DC removes the header from the logical record (OPTNS=LL).

LU6.2 Unmapped Conversations

During LU6.2 unmapped (basic) conversations, a read request can specify the following options:

Non-LU6.2 Conversations

For non-LU6.2 conversations, the following considerations apply: