Use SendData to pass input parameters to a custom server.
SendData transmits the data items contained in specific variables to the server. The server uses each data item as one input parameter. The server then has the parameters it needs to retrieve information that is stored on another computer.
Note that SendData and ReceiveData actions must be alternated in the state table. You cannot execute multiple SendData actions to the same server without intervening ReceiveData actions. Every SendData action must have a matching ReceiveData action unless a server returns a void response, in which case SendData should have a Host Response Time Limit of 0, and there should be no corresponding ReceiveData action.
The parameters for SendData identify the server that will be used to retrieve the information and the variables to which input parameters are assigned. The parameters also include a time limit.
SendData can have one of the following results:
When using an ASCII editor, code this action with these parameters in the following order:
For example:
label: "Check Edges" SendData("SERVER_3270", SrvrSample_3270, 20, abrw_query, in3_s) edge EDGE_SEND_DATA_COMPLETED: completed edge EDGE_SEND_DATA_HOST_NOT_OPEN: host_not_open ; SendData("CUSTOM_SERVER", CS_Request_Call, 20, read_rec, loc2_n);
The parameters and edges are described above under "Parameters" and "Possible results". For more information, see Testing a state table using the debugger.