DEFINE LINK command: TPROCESS
- System manager, User 0
- Defines the transport type and the protocol to be used in communicating with the partner process
DEFINE LINK name [LIKE previousname] WITH SCOPE=SYSTEM TRANSPORT=TERMINAL PROTOCOL=MASTER
name identifies the link.
LIKE gives the current link the attributes of the link entity referred to by previousname.
SCOPE=SYSTEM indicates that the definition is available to all users of the Model 204 system for the entire run.
TRANSPORT is the physical communication transmission method.
For TPROCESS links, TRANSPORT must be set to TERMINAL. The TERMINAL parameter means that under z/VM or CICS the terminal is "borrowed" to perform communications.
PROTOCOL identifies the protocol to be used with the partner process. MASTER specifies the TPROCESS facility. If MASTER is specified, the only User Language statements allowed are OPEN PROCESS, SEND, RECEIVE, SIGNAL PROCESS, and CLOSE PROCESS.
MASTER specifies that the User Language request communicates with the remote partner process using a "Parent-Child" protocol, where the request is the parent (MASTER) and the partner process is the child. This protocol defines a relationship in which the actions of the parent determine what actions can be taken by the child. Specifically, when the parent issues a SEND, the child must issue a RECEIVE, and when the parent issues a RECEIVE, the child must issue a SEND.
In the following example, the TPROCESS link is identified by the transport type TERMINAL and the protocol MASTER:
DEFINE LINK M204PROD WITH - SCOPE=SYSTEM - TRANSPORT=TERMINAL - PROTOCOL=MASTER