Use this task to run a scheduled job from the command line.
Note: Scheduled jobs, containing one or several action requests, can
be created using the Scheduler. See the Common Elements
Manual for details.
To run a scheduled job using the command line, specify:
PR0CMND /R JOB=‘jobname'
- 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 specified
job.
- JOB=‘jobname'
- Specify JOB= followed by the name of the
scheduled job, as saved in the Scheduler.
Note: Specify
the job name enclosed in double or single quotes.
- To run a job named CUSTDATA and write the results
to an output file named CUSTOUT.TXT, specify:
PR0CMND /R JOB=‘CUSTDATA' OUTPUT=C:\CUSTOUT.TXT
- To run the same job and display prompts and error
dialogs during the process, specify:
PR0CMND /R JOB=‘CUSTDATA' OUTPUT=C:\CUSTOUT.TXT QUIET-
- To run a job named PAYROLL and display information
dialogs during the process, specify:
PR0CMND /R JOB=‘PAYROLL' OUTPUT=PAY.TXT MONITOR+