VISTA Plus for MPE Administrator's Guide

Managing Reports
5-21
Capturing Reports to VISTA Folders
NBSpools background processing capability can be used to create folders automatically. Spool files
can be copied to the folder directly from the MPE spooler. Background processing is made available
through the use of the XEQ command, which executes a list of commands either once or
repetitively. The execution of the command list is implemented as a background task if the
REPEAT or the WAIT parameter is specified.
The XEQ command executes a list of commands from a command file. When it is executed,
NBSpool first parses all the commands in the command file. If any command is not valid, the entire
XEQ command is terminated. However, if you add ERROR IGNOREafter the XEQ command,
the command will not be terminated. A sample XEQ command file follows.
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;PRINTER=WH0002;NEWPRI=12
END
To execute the command file every 90 seconds within NBSpool, enter:
O> XEQ ACCTSAVE.SPOOL;WAIT=90
To further automate the process, you can place XEQ statements in jobs which can be run as
background jobs. The following job is an example.
!JOB VISTA,OPERATOR.SYS
!COMMENT THIS BATCH JOBS WAKENS & EXECUTES EVERY 2 MINUTES
!
!RUN NBSPOOL.PUB.NETBASE
XEQ;WAIT=120
ERROR IGNORE
VSAVE AP@,%1-7;FILE=ACCOUNTG.DATA.PROD;DESC=“AP, AR, IV REPORTS”;&
LIMIT=200,5000;APPEND
VSAVE AR@,%1-7;FILE=ACCOUNTG.DATA.PROD;APPEND;NEWPRI=10
VSAVE IV@,%1-7;FILE=ACCOUNTG.DATA.PROD;APPEND;RELEASE;&
PRINTER=WH0002;NEWPRI=12
END
EXIT
!EOJ