19.4.2 Task-to-Task Communication
BASIC supports task-to-task communication if your account
has NETMBX privileges.
Follow these steps for task-to-task communication:
The OPEN statements in the programs at both nodes
must specify the same file attributes.
2. Start task-to-task communication by accessing the com-
mand file at the remote site. For example, a program at
the local node could contain the following line:
OPEN 'WESTON::"TASK = MARG"' AS FILE #1%, SEQUENTIAL
3. The system then assigns the logical name SYS$NET
to the program at the local node. At the remote node,
the program (COPYT.EXE) must use this logical for all
operations. For example:
OPEN 'SYS$NET' FOR INPUT AS FILE #1%, SEQUENTIAL
4. The two programs can then exchange messages. The
programs must have a complementary series of send
/receive statements.
EXAMPLE: Click to display EXAMPLE.
EXAMPLE: Click to display EXAMPLE.
The task-to-task communication ends when the files are
closed.
See the DECnet for OpenVMS Networking Manual and the
OpenVMS System Manager's Manual for more information.