NBSpool for MPE Reference Guide

Chapter 4
4-8
The
COPY command is often used in background jobs to continually copy jobs from one computer to
another. If a line or computer goes down, it is often preferable to have NBSpool keep trying to
connect until the remote computer comes back up, for example:
To copy all jobs with a priority of
2
to
6
to the remote computer VGER every
60
seconds:
:JOB COPYJOBS,OPERATOR.SYS
:
:DSLINE VGER;LOGON=SPXFER,OPERATOR/SECRET.SYS
:
:RUN NBSPOOL.PUB.NETBASE
INPUT
XEQ;WAIT=60;ERROR IGNORE
COPY %2-6 TO *VGER;NEWPRI=7
END
EXIT
:EOJ
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
VGER goes down,
NBSpool will log on again without any operator intervention.