Use OpenHostServerLink to acquire a session for use by a 3270 server or custom server.
OpenHostServerLink must be executed to establish a link before a state table can perform actions that send information to or receive information from a server.
The parameters for OpenHostServerLink identify the server for which the session is acquired. The first parameter identifies the type of server that will be using the session. If there is more than one server of that type, a second parameter identifies the specific server by name.
OpenHostServerLink 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" OpenHostServerLink("SERVER_3270", SrvrSample_3270) edge EDGE_OPEN_HOST_SUCCESSFUL: successful edge EDGE_OPEN_HOST_UNSUCCESSFUL: unsuccessful ; OpenHostServerLink("CUSTOM_SERVER", CS_Request_Call);
The parameters and edges are described above under "Parameters" and "Possible results". For more information, see Testing a state table using the debugger.