In order to bring you the best possible user experience, this site uses Javascript. If you are seeing this message, it is likely that the Javascript option in your browser is disabled. For optimal viewing of this site, please ensure that Javascript is enabled for your browser.
Login  |   On Demand  |   Home  |   qad.com




Invoke Batch Processing from CIM
In UNIX or Windows, you can create a batch file that invokes batch processing. You can then schedule when to run the script of the batch file. The scheduling capability of the operating system lets you run the batch processing at a time that is most convenient for you.
To set up a batch script, follow these steps.
1
Prepare a file that anticipates all data entry to Batch Request Processor (36.14.13).
The file should use CIM format. The first line provides login information:
“<User_Name>” “<Password>” “<Login_Domain>”
“mgbatch.p”
“<Domain>” “<Batch_ID>”
- - - - - - - - - - - - - - - - - -
“<Is_Repeat>”
-
.
.
“Y”
In the script, mgbatch.p is the program name for Batch Request Processor. Domain and Batch_ID identify the batch requests to process. The line Is_Repeat indicates that requests for multiple domains can be included in the script. A hyphen (-) indicates to tab through a field; the two dots are exits, and Y confirms the exit from your session.
See CIM Interface for more details on CIM load processing.
2
Create a .p file of following format. Replace Input_File with the path of the file that you prepared in the previous step.
Note: If you are working in UNIX instead of Windows, the first statement in the following script is unnecessary.
Assign PROPATH = <Propath>.
Input From <Input_File>.
Output To <Output_File>.
Run mf.p.
Input Close.
Output Close.
3
Set up a batch file. The batch file is a .sh file that can be scheduled using the UNIX crontab command or a .bat file that, in Windows, you can add to Scheduled Tasks in Control Panel.
To set up the batch file, use the Progress command mpro (UNIX) or prowin32.exe (Windows) to invoke the .p program that you created in step 2.
In UNIX, the .sh file has the following structure:
TERM = <Term>;
DLC = <DLC>;
PATH = <Path>;
PROPATH = <Propath>;
mpro <DB_Parameters> -p <Progress_Program> <Startup_Parameters>
In Windows, the .bat file has the following structure:
SET DLC = <DLC>
SET PATH = <Path>
prowin32.exe <DB_Parameters> -p <Progress_Program> <Startup_Parameters>
The table describes the variables used in the scripts.

Variables in Batch File
 
Parameter
Description
DLC
Specify the value of the DLC system variable.
PATH
Specify the value of the PATH system variable.
TERM
For UNIX only, specify a terminal type.
PROPATH
Specify the value of the Progress PROPATH variable.
DB_Parameters
Specify the parameters to connect to the database. For more information, see Progress help.
Progress Program
Specify the path of the .p program that you created in the previous step.
Startup Parameters
Specify other parameters for mpro or prowin32.exe to start. For more information, see Progress help.