NBSpool for MPE Reference Guide

NBSpool Output Commands
3-23
The
COPY
command is often used in background jobs to continually copy spool files from one
computer to another. In the following example, all spool files with a priority of
8
to
14
are copied to
the remote computer,
ENGINE
, every
60
seconds.
!JOB COPYJOB,OPERATOR.SYS
!
!DSLINE ENGINE;LOGON=SPXFER,OPERATOR/SECRET.SYS
!
!RUN NBSPOOL.PUB.NETBASE
XEQ;WAIT=60
COPY %8-14 TO *ENGINE;NEWPRI=7
END
EXIT
!EOJ
Note. The
NEWPRI=
parameter prevents the same spool files from being copied every
time the command executes, since the copied spool files will be reduced below the
subset selection criteria.
The
DSLINE
command with the
LOGON=
parameter will cause NBSpool to automatically log on to
the remote machine with a “programmatic” logon. If the remote computer
ENGINE
goes down,
NBSpool will log on again without any operator intervention.
In the following example, all spool files for device class
NOVELL
are copied to Novell Server
MYSERVER
, Printer Queue HPLJQ, and the report is printed with 132 column portrait.
O> COPY DEV=NOVELL TO MYSERVER;LPR;DEST=”HPLJQ”:PRINTER=LP132
1 Spool files Qualify
DFID FILENAME JOB USER NAME SECTORS STATUS
-------------------------------------------------------------------
#O3234 GLREPORT #J969 OPERATOR.SYS 236 Sent
In the following example, the Quest Novell PC Gateway Product is used to copy all spool files for
device class
RLASER
to Novell Server
MYSERVER
, Printer Queue HPLJQ.
O> COPY DEV=RLASER TO GATEWAY;QUEUE=MYSERVER/HPLJQ
1 Spool files Qualify
DFID FILENAME JOB USER NAME SECTORS STATUS
---------------------------------------------------------------
#O3434 APREPORT #J972 OPERATOR.SYS 272 Sent