SNAX/APC Application Programming Manual
Verb Definitions
SNAX/APC Application Programming Manual—138786
3-30
RECEIVE-AND-WAIT Verb
Return Codes
If the RECEIVE-AND-WAIT verb is issued in the Send state, the following return codes
can be returned in REP-RETURN-CODE of RWR-HEADER:
RC-OK
RC-ALLOCATION-ERROR
RC-BACKOUT-NO-RESYNC
RC-BACKOUT-RESYNC
RC-DEALLOCATE-ABEND-PROG
RC-PROGRAM-ERROR-PURGING
RC-RESOURCE-FAIL-NO-RETRY
RC-RESOURCE-FAIL-RETRY
If the RECEIVE-AND-WAIT verb is issued in the Receive state, the following return
codes can be returned in REP-RETURN-CODE of RWR-HEADER:
RC-OK
RC-ALLOCATION-ERROR
RC-BACKOUT-NO-RESYNC
RC-BACKOUT-RESYNC
RC-DEALLOCATE-ABEND-PROG
RC-DEALLOCATE-NORMAL
RC-PROGRAM-ERROR-NO-TRUNC
RC-PROGRAM-ERROR-PURGING
RC-PROGRAM-ERROR-TRUNC
RC-RESOURCE-FAIL-NO-RETRY
RC-RESOURCE-FAIL-RETRY
Considerations
•
REQUEST-TO-SEND notification is usually received in the Send state but can be
received in Receive state under one of the following conditions:
•
The local TP just entered Receive state, and the remote TP issued REQUEST-
TO-SEND.
•
The remote TP issued the PREPARE-TO-RECEIVE verb and then issued
REQUEST-TO-SEND before the local program entered Send state.
•
Because the REQUEST-TO-SEND is transmitted as an expedited request, it can
arrive ahead of the request carrying the SEND indication. The local TP cannot
distinguish this condition from the first condition (the local TP entered Receive
state as the remote TP issued a REQUEST-TO-SEND). However, if the remote
TP waits until it receives information from the local TP before it issues the
REQUEST-TO-SEND, this ambiguity can be avoided.
•
The remote TP issued REQUEST-TO-SEND in Send state.