Using NS3000/iX Network Services (36920-90008)

Chapter 7 153
Remote Process Management
RPM Program Examples
opens a data file;
executes a loop in which it:
reads a line of data from the data file;
stores the length (number of bytes) of the data in the first part of
the message;
stores the data itself in the second part of the message;
sends the message on the connection, including the message
length as the first two bytes of the message;
after all the data is transmitted from the data file, sends a “last
message” that will be recognized by the receiving program as a
termination request;
receives a “termination confirmation message” and shuts down the
connection by releasing its VC socket.
NOTE Process Handling (PH) capability is required to use the following
programs.
Before running the first program, you must associate the remote node
with the environment ID “REMNODE” via the DSLINE command. For
example, issue the command DSLINE REMNODE=ASTRO if the remote
node where the second program resides is named “ASTRO.”