NetBase for MPE Reference Guide
Chapter 4
4-12
DEVICE
The DEVICE command adds device records to NetBase's directory. The device record is used to
redirect spooled output from the local node to a remote node. This is done by redirecting the output
for a local spooled device or device class to a remote spooled device or device class.
The device record can also be used to specify an alternate spooled device. The alternate device will
be used if the primary device is unavailable because communication to the node it is on is down.
The COPY option can be used to create a local copy of the spool file while also sending the output to
a remote device. In this case, if communication to the remote node goes down while a process that
sends output to that node is executing, the process will continue to execute. If the TEMP option is
specified, the local copy will be purged when the local process completes and its output has been
successfully transmitted to the remote device.
Because of the additional overhead incurred by creating a local copy of the spool file, it is
recommended that the COPY option be used only where line continuity is questionable. For instance,
with systems that use certain wide area networks. Local area networks are very dependable making
the COPY option too costly in terms of performance to use.
Device records can be listed using the LISTD command. They are removed by using RESET. This
command requires NODE MANAGER (NM) and SYSTEM MANAGER (SM) capability.
Syntax
D> DEVICE {class}[={class},node] [;ALT={class} [,node]] [;COPY [=device,outpri,copies]]
{ldev }[ {ldev } ] [ {ldev } ] [;TEMP]
Parameters
Parameter Description
class (local) ldev
The device class or logical device number of the spooled device as
referenced by the program.
class (remote)
ldev
If specified, this parameter is the actual device class or logical device
number that the spool file will be mapped to on the remote system. If
omitted NetBase uses the same class or ldev as the local reference.
node (remote)
This parameter is the node name or number of the computer to which
the actual spool device is connected.
Continued