&APPC SEND_ERROR signals an error condition to the remote conversation partner.
SEND_ERROR indicates this is a request to signal an error condition to the conversation partner. A text string can also be provided which will be included in the Error Log GDS variable.
This verb has the following format:
&APPC SEND_ERROR
[ ID=id ]
[ LOG=msg ]
Operands:
Specifies the conversation identifier (as first returned by the system variable &ZAPPCID after successful allocation) that references a particular conversation. If this parameter is omitted the current (last referenced, or only) conversation is assumed.
When this operand is used it must be the last specified for the verb. All data following the LOG= operand is placed unchanged into the message area of the Error Log GDS variable sent to the remote application with the error indication.
If the remote application is an NCL procedure, it can access this text after receiving an error return code, in the &ZAPPCELM system variable.
Example: &APPC SEND_ERROR
&APPC SEND_ERROR LOG=&ERRMSG
Return Codes:
The return codes are as follows:
Request successful
Request unsuccessful
Remote program error
State check
Request or conversation error
&ZFDBK is also set, plus all APPC system variables.
State Transition:
The SEND_ERROR request is issued from send, receive, confirm, confirm_send, or confirm_deallocate states, and as a result the conversation is placed in send state.
Notes:
Relationship to LU6.2 Verb Set:
&APPC SEND_ERROR is equivalent to the LU6.2 verb MC_SEND_ERROR.
| Copyright © 2011 CA. All rights reserved. | Tell Technical Publications how we can improve this information |