The example belows displays how to setup and run batch processes for different applications in sequence, automatically, using Unix schedule:
Setup for batch process is as follows:
* Set up ONE batch ID "NIGHTLY".
* Queue MRP to ID "NIGHTLY".
* Queue CRP to ID "NIGHTLY".
* In 36.14.3, set the PRIORITY for MRP to 100, CRP to 0
Setting the priority value is important. Higher numbers run first, 0 runs last.
CHUI Scheduler process is as follows:
CHUI Scheduler will be setup to kick off a program that is going to enable MFG/PRO to access and run 36.14.13 Batch Request Processor (mgbatch.p ), for a batch ID of "NIGHTLY" as follows:
* First a client startup will need to be setup (Character Only for NT Clients).
* Setup a -b parameter (batch processing) in the startup and replace the -p mf.p with -p BATCH-PROG.
* Name the client startup BATCH-DAILY
* Setup NT Scheduler to call the startup script of BATCH-DAILY.
The contents of BATCH-PROG (the program being run by BATCH-DAILY) are as follows:
input from BATCH-INPUT.
output to BATCH-OUTPUT.
run mf.p.
output close.
input close.
Note: BATCH-OUTPUT is a file that will be generated as an output file to show what you are running. There is no need to manually create it first.
The contents of BATCH-INPUT are as follows:
"Login" "Password"
36.14.13
"NIGHTLY" - - - - - - - - - "NO" 300
.
.
Y
NOTE: Depending on the security option, the first line may be different! The text of the BATCH-INPUT file requires the same rules as a CIM Input file would require. The object of BATCH-INPUT is to 'CIM' through MFG/PRO to run the Batch Processor (mgbatch.p) with the batch ID of NIGHTLY and then exit MFG/PRO.