snalu62_send_error(3) — Subroutines
Name
snalu62_send_error − Sends an error message to the remote transaction program.
FORMAT
STATUS_RTN snalu62_send_error(
RES_ID resource,
STATUS_VEC status_vec,
UINT32 type,
BUFFER ∗log_data,
UINT32 sense_code,
UINT8 ∗rts_recv,
UINT8 ∗exp_data_recv,
ASYNC_INFO ∗wait_object
);
Valid Conversation States
Send, Receive,
Confirm, Confirm-Send, and Confirm-Deallocate
Arguments
resource
A RES_ID structure assigned to the conversation by the interface. This ID was returned by the snalu62_allocate, snalu62_attach_listen, or snalu62_receive_allocate verb.
status_vec
A pointer to a STATUS_VEC array to receive the completion status information.
type
A UINT32 value specifying the type of error being reported. Specify one of the following values:
•SNALU62_C_PROG (the default)
Indicates the error is at the program level. At the remote system the error is reported to the remote transaction program.
•SNALU62_C_SVC
Indicates the error is at the LU services level. At the remote system the error is reported to the remote LU services program.
log_data
A pointer to a BUFFER structure containing the data to be sent. The buffer contains a single logical record. The logical record consist of a 2-byte length field followed by a data field. The high-order bit of this length field is not used. The remaining 15 bits contain the length of the record (including the 2-byte length field). Therefore, the maximum length of the data field is 32,765 bytes and logical-record length values of 0 and 1 are invalid. Supply this parameter in ASCII format; the interface translates it to EBCDIC. The data field is optional, that is, the data field can consist of zero bytes.
sense_code
A UINT32 value specifying the sense code that the interface should transmit in the Function Management Header Type 7 (FMH-7) message. Only a process having superuser privileges or a user listed in the system group in the etc/group file can specify a value other than zero. A value of zero means to transmit the architected sense code.
rts_recv
A pointer to a UINT8 location to receive a boolean value indicating whether the remote transaction program has requested permission to send data. A value of TRUE (1)
indicates the remote program is requesting to send data. A value of FALSE (0)
indicates the remote program has not requested to send data.
exp_data_recv
This parameter is a place holder. The functionality represented by this parameter is not implemented.
wait_object
A pointer to an ASYNC_INFO structure specifying whether the interface should process this verb in a blocking or non-blocking manner.
Description
Upon successful completion of this verb, the local program is in the Send state and the remote program is in the Receive state. Further action is defined by transaction program logic.
Return Values
SNALU62_S_OK
normal successful completion
SNALU62_S_ALLERR
conversation could not be allocated
SNALU62_S_BACKOUT
backed out
SNALU62_S_CONVCANC
conversation canceled
SNALU62_S_DEABPR
deallocate abend program
SNALU62_S_DEABSVC
deallocate abend services
SNALU62_S_DEABTIM
deallocate abend timer
SNALU62_S_DEALNOR
deallocate normal
SNALU62_S_OPINCOMP
non-blocking operation not completed
SNALU62_S_OPNOTACC
non-blocking operation not accepted
SNALU62_S_PARERR
parameter error, function-name
SNALU62_S_PRERPU
program error purging
SNALU62_S_PRGPARCHK
program parameter check
SNALU62_S_RESFNO
resource failure no retry
SNALU62_S_RESFRET
resource failure retry
SNALU62_S_STAERR
LU6.2 verb function-name invalid with conversation in current state
SNALU62_S_SVCERPU
service error purging
SNALU62_S_UNSUC
verb did not execute successfully