[next] [previous] [contents]

  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:

  1. Establish a command file at the remote site to execute the
        program you want. The program must be in executable
        image format. For example, you can create the file
        MARG.COM at the remote site. MARG.COM contains a
        line to run an image (in this case, COPYT.EXE).
        $ RUN COPYT

        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.