Example 3 - Run One or More Processes Using a Parameter File
Use this task to run one or more processes from an ASCII or text file.
To run one or more processes from an ASCII or text file, specify:
PR0CMND /R @filename
- PR0CMND
- Type PR0CMND to begin the command line sequence. Note that the character following PR is the number 0 (zero).
- /R
- Specify /R or –R to run the process parameters specified in the parameter file.
- @filename
- Enter the @ sign followed by the name of the file that contains the parameters for the process(es) (required). If the parameter file is not in the default Data Directory, you must specify the full directory path.
File Format
See the command line syntax in Extract, Insert, Load, and Convert Process Syntax when formatting process parameters in a text file. You can include several action requests or scheduled jobs in the file. The following guidelines apply:
- Specify each action request or scheduled job on a separate line in the file. Begin each action request with the TYPE parameter.
- You can specify an optional command-line keyword to stop processing on error. Use the STOP=errorcode command‑line keyword for each process request in the input file.
- You can also run a scheduled job. Use the JOB=jobname command-line keyword. (The STOP=errorcode command-line keyword does not apply to scheduled jobs.)
For example, consider a parameter file named STATS.TXT containing the following:
TYPE=EXTRACT REQUEST=MONTHLY.SALES STOP=WARNING TYPE=EXTRACT REQUEST=MONTHLY.QUOTAS TYPE=INSERT
REQUEST=SALES.YTD STOP=FATAL
To run the requests, specify:
PR0CMND /R @C:\STATS.TXT