Exchange/SNA Manual
Using Exchange/SNA with Existing Programs
Using the Exchange/SNA Programmatic Interface
104700 Tandem Computers Incorporated 4–15
Using Exchange/SNA
With Existing
Programs
The Exchange/SNA programmatic interface is a standard file-system interface.
Because of this, you can use existing programs that support the standard file-system
interface with Exchange/SNA without having to change the programs, provided the
programs open Exchange/SNA subdevices in the appropriate mode (read-only,
exclusive access for printer and punch subdevices and write-only, exclusive access for
card-reader subdevices).
In general, to use an existing program with Exchange/SNA, all you need to do is start
a line server using the Exchange/SNA command interpreter and then run the
program, specifying a subdevice supported by the line server as a file the program is
to use. This method of using Exchange/SNA applies to programs supplied by
Tandem as well as user-written programs.
Perhaps the Tandem supplied program most commonly used with Exchange/SNA is
the File Utility Program (FUP). The following example illustrates how you can use
FUP to send a job to and receive a job from the host RJE subsystem.
This example assumes the following:
An Exchange/SNA line server called $SNA exists.
$SNA supports a reader subdevice #RD1 and a printer subdevice #PR1.
The file $DATA1.HOST1.JOB1 contains the JCL and data to execute the job.
Given the above, you could use the following FUP command to send the job in
$DATA1.HOST1.JOB1 to the host RJE subsystem:
> FUP COPY $DATA1.HOST1.JOB1, $SNA.#RD1
and the following FUP command to receive the job output back and write it to a
spooler location:
> FUP COPY $SNA.#PR1, $S.#PR1
Existing programs that use Exchange/SNA use the default values for the operational
parameters that control send and receive operations (the SETMODE operation does
not apply to these programs).