Exchange/RJE Manual

4 Using the Exchange/RJE
Programmatic Interface
104698 Tandem Computers Incorporated 4–1
This section provides instruction on how to use the Exchange/RJE programmatic
interface to send files to and receive files from a remote system. This section covers
the following information:
System procedure call summary
Programming considerations
Step-by-step instructions
System Procedure Call
Summary
The programmatic interface lets your program control and communicate with the
Exchange/RJE line server through standard system procedure calls. Table 4-1 lists the
system procedure calls most frequently used to control and communicate with the line
server and briefly describes the function of each. For a detailed description of these
system procedure calls and how they are used with the line server, see Section 5. For
the complete definition of all system procedure calls, see the Guardian Procedure Calls
Reference Manual.
Table 4-1. System Procedure Call Summary
Procedure Function
AWAITIO Completes (or checks for completion of) a previously initiated nowait I/O operation.
CLOSE Terminates access to the Exchange/RJE line server.
CONTROL Sends an end-of-text (ETX), end-of-transmission (EOT), or disconnect (DLE EOT)
message to the remote system.
NEWPROCESS Starts the Exchange/RJE line server programmatically.
OPEN Establishes communication between your program and the Exchange/RJE line
server.
READ Reads a record received by the Exchange/RJE line server from the remote
system.
SETMODE Sets parameters that control the operation of the Exchange/RJE line server.
WRITE Writes a record from your program to the Exchange/RJE line server for
transmission to the remote system.
WRITEREAD Performs the same function as WRITE or READ.