SNAX/APC Application Programming Manual

Verb Definitions
SNAX/APC Application Programming Manual138786
3-61
MC-PREPARE-TO-RECEIVE Verb
MC-PREPARE-TO-RECEIVE Verb
This verb changes the mapped conversation from Send state to Receive state in
preparation to receive data. A SEND indication is sent to the remote program. The
remote program’s end of the mapped conversation changes to Send state when the
program receives the SEND indication.
The format for MC-PREPARE-TO-RECEIVE request is:
Request Details
REQ-UOW-CODE
This field must contain the value 1110, which identifies the MC-PREPARE-TO-
RECEIVE verb.
MC-PR-TYPE
This field specifies the type of the MC-PREPARE-TO-RECEIVE request to be
performed. The different types are:
CO
specifies that SNAX/APC is to transmit the contents of the local LU’s send
buffer to the partner TP and then request confirmation from the partner TP. The
MC-PREPARE-TO-RECEIVE verb does not complete until the partner TP
responds to the request for confirmation. If the partner TP responds to the
request for confirmation affirmatively, the conversation is placed in the Receive
Request Format
01 MC-PREP-TO-RECEIVE-REQ.
02 MC-PR-HEADER.
03 REQ-UOW-ID PIC X(2).
03 REQ-UOW-CODE PIC 9(4) COMP.
02 MC-PR-PARAMETERS.
03 MC-PR-TYPE PIC X(2).
88 MC-PR-TYPE-CONFIRM VALUE IS "CO".
88 MC-PR-TYPE-FLUSH VALUE IS "FL".
88 MC-PR-TYPE-SYNC-LEVEL VALUE IS "SL".
03 RESERVED-1 PIC X(1).
03 MC-PR-LOCKS PIC X(1).
88 MC-PR-LOCKS-NO-LOCK VALUE IS " ".
88 MC-PR-LOCKS-SHORT-LOCK VALUE IS "S".
Reply Format
01 MC-PREP-TO-RECEIVE-REP.
02 MC-PRR-HEADER.
03 REP-UOW-ID PIC X(2).
03 REP-VERB-CODE PIC 9(4) COMP.
03 REP-RETURN-CODE PIC S9(4) COMP.
03 REP-RETURN-CODE-DETAIL PIC S9(4) COMP.