LU 6.2 API Application Programmer's Reference Guide (30294-90008)

Chapter 5 119
Intrinsic Descriptions
MCSendData
MCSendData
Sends one data record to the remote TP.
Syntax
I16V CA I16V I16
MCSendData(
ResourceID
,
Data
,
Length
,
RequestToSendReceived
,
I32
Status
);
Parameters
ResourceID
Required; 16-bit signed integer by value; input. This is
the unique resource ID number assigned to this
conversation when it was allocated. See MCAllocate or
MCGetAllocate, in this chapter, for more information.
Data
Required; character array; input; EBCDIC. This byte
array holds the data that is to be sent to the remote TP.
Data that is to be sent to an EBCDIC application must
be translated from ASCII to EBCDIC. The MPE
CTRANSLATE intrinsic, or the NLTRANSLATE intrinsic
on MPE XL, may be used.
Length
Required; 16-bit signed integer by value; input. This is
an integer from 0 through 32763 that speciļ¬es the
length, in bytes, of the data record to be sent. If
Length
= 0, a null record is sent.
RequestToSendReceived
Required; 16-bit signed integer; output. Indicates
whether the remote TP has issued a RequestToSend.
Possible values are as follows:
1 = YES
Indicates a RequestToSend has been received from the
remote TP. The remote TP has issued the equivalent of
the MCReqToSend intrinsic, requesting that the local TP
enter Receive state and place the remote TP in Send
state.