VISTA Plus for MPE Administrator's Guide
NBSpool Commands
3-17
XEQ Command Examples
The file MOVECMDS.SPOOL is an ASCII file that contains a number of MOVE commands. To
repeat these move commands every 20 seconds, enter:
O> XEQ MOVECMDS.SPOOL;WAIT=20
To execute the same file only once and to show the commands as they occur, enter:
O> XEQ MOVECMDS.SPOOL;SHOW
To enter a list of commands that should be repeated 100 times every 60 seconds (the default wait
time), enter:
O> XEQ;REPEAT=100
XEQ Command File
The XEQ command executes a list of commands from a command file. When the XEQ command
is executed, NBSpool first parses all the commands in the command file. If any command is not
valid, the entire XEQ command is terminated. As each command is parsed, it is displayed with a
special X> prompt. Continuation lines are valid up to 254 characters. To indicate the end of an
XEQ command, simply enter END at the X> prompt. A sample XEQ command file,
ACCTSAVE.SPOOL, is followed by a background job which invokes it.
:PRINT ACCTSAVE.SPOOL
VSAVE AP@,%1-7;FILE=ACCOUNTG.DATA.PROD;DESC=“AP, AR, GL, IV
RPTS”;LIMIT=200,5000;APPEND
VSAVE AR@,%1-7;FILE=ACCOUNTG.DATA.PROD;APPEND;NEWPRI=10
VSAVE GL@,%1-7;FILE=ACCOUNTG.DATA.PROD;APPEND;PURGE
VSAVE IV@,%1-7;FILE=ACCOUNTG.DATA.PROD;APPEND;RELEASE;PRINTER=WH0002;NEWPRI=12
END
!JOB VISTA,OPERATOR.SYS
!
!COMMENT THIS BATCH JOBS WAKES UPS & EXECUTES EVERY 2 MINUTES
!
!RUN NBSPOOL.PUB.NETBASE
XEQ ACCTSAVE.SPOOL;WAIT=120
EXIT
!EOJ