Previous Topic: #SENDMSG ParametersNext Topic: #SENDMSG Example


#SENDMSG Status Codes

By default, the #SENDMSG statement is unconditional; any runtime error results in an abend of the issuing task. The issuing program can request return of control with the COND parameter to avoid an abend.

After completion of the #SENDMSG, the value in register 15 indicates the outcome of the operation. The following is a list of Register 15 values and the corresponding meaning:

X'04'

The request cannot be serviced due to an I/O error during processing.

X'08'

The request cannot be serviced due to an invalid parameter list.

X'0C'

The request cannot be serviced because the message destination is undefined.