SNAX/APC Application Programming Manual

Verb Definitions
SNAX/APC Application Programming Manual138786
3-78
MC-SEND-ERROR Verb
MC-SEND-ERROR Verb
The local TP uses the MC-SEND-ERROR verb when it detects an application data error.
MC-SEND-ERROR can be issued in either Send or Receive state. If the local TP is in
Receive state, it uses MC-SEND-ERROR to notify the remote TP that the received data
cannot be processed; if the local TP is in Send state, it can use MC-SEND-ERROR to
notify the remote TP that recently sent data was not usable. MC-SEND-ERROR does
not terminate the conversation.
If the local TP is in Send state, the MC-SEND-ERROR verb causes SNAX/APC to flush
its internal buffer. The FMH-7 header generated by the MC-SEND-ERROR verb is not
transmitted until a later request flushes the buffer again. MC-SEND-ERROR completes
immediately.
If the local TP is in Receive state, the MC-SEND-ERROR verb completes immediately
and changes the local TP to Send state. SNAX/APC sends a negative response to the
remote TP. The FMH-7 header generated by the MC-SEND-ERROR verb is not
transmitted until a later request flushes the buffer again. The FMH-7 directs the remote
LU to halt the data flow; the remote LU responds with End-of-Chain and change
direction indicators.
The format for an MC-SEND-ERROR request is as follows:
Request Format
01 MC-SEND-ERROR-REQ.
02 MC-SE-HEADER.
03 REQ-UOW-ID PIC X(2).
03 REQ-UOW-CODE PIC 9(4) COMP.
02 MC-SE-PARAMETERS.
03 MC-SE-TYPE PIC 9(4) COMP.
Reply Format
01 MC-SEND-ERROR-REP.
02 MC-SER-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 MC-SER-PARAMETERS.
03 RESERVED-1 PIC X(1).
03 MC-SER-REQUEST-TO-SEND-IND PIC X(1).
88 SER-RECEIVED VALUE IS "Y".
88 SER-NOT-RECEIVED VALUE IS "N".