SNAX/APC Application Programming Manual
Verb Definitions
SNAX/APC Application Programming Manual—138786
3-26
RECEIVE-AND-WAIT Verb
RECEIVE-AND-WAIT Verb
The local TP issues RECEIVE-AND-WAIT when it is ready to receive data or control
information from the remote TP. The local TP can issue RECEIVE-AND-WAIT while
in Send state to flush the data buffer and cause a transition to Receive state. Successful
completion of the RECEIVE-AND-WAIT verb occurs when the local TP receives data
or information from the remote TP. The WHAT-RECEIVED indicator informs the local
TP of the type of information received.
Note. The fields RWR-DATA-LENGTH and RWR-DATA-AREA are not defined by the
SNAX/APC DDL because they cannot be created by DDL. The SNAX/APC DDL
provides example definitions for these fields in COBOL and TAL. You must create the
definitions for these fields.
Request Format
?SECTION RECEIVE-AND-WAIT-REQ,TANDEM
01 RECEIVE-AND-WAIT-REQ.
02 RW-HEADER.
03 REQ-UOW-ID PIC X(2).
03 REQ-UOW-CODE PIC 9(4) COMP.
02 RW-PARAMETERS.
03 RESERVED-1 PIC X(1).
03 RW-FILL PIC X(1).
03 RW-MAX-DATA-LENGTH PIC 9(4) COMP.
Reply Format
?SECTION RECEIVE-AND-WAIT-REP,TANDEM
01 RECEIVE-AND-WAIT-REP.
02 RWR-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.
02 RWR-PARAMETERS.
03 RESERVED-1 PIC X(1).
03 RWR-REQUEST-TO-SEND-IND PIC X(1).
88 RWR-RECEIVED VALUE IS "Y".
88 RWR-NOT-RECEIVED VALUE IS "N".
03 RWR-WHAT-RECEIVED PIC 9(4) COMP.
88 WR-DATA VALUE IS 0.
88 WR-DATA-COMPLETE VALUE IS 1.
88 WR-DATA-INCOMPLETE VALUE IS 2.
88 WR-SEND VALUE IS 3.
88 WR-CONFIRM VALUE IS 4.
88 WR-CONFIRM-SEND VALUE IS 5.
88 WR-CONFIRM-DEALLOCATE VALUE IS 6.
88 WR-PS-HEADER-PENDING VALUE IS 8.
88 WR-PS-HEADER-COMPLETE VALUE IS 9.
88 WR-PS-HEADER-INCOMPLETE VALUE IS 10.