Previous Topic: Keeping an Application activeNext Topic: Adding a relationship between two unrelated jobs


Running ad hoc jobs

Objective

A number of independent ad hoc jobs are defined in an Application. When a request comes in to run one of these jobs, there needs to be an easy way of running the job.

Solution

To run ad hoc jobs

  1. Define each of your ad hoc jobs in the Application.
  2. Use Run Daily or Run Anyday as the run criteria for each job. You can set this as a job default in your Application by using the Run frequency Application property.
  3. Define an Event to run your Application. This Event will be triggered manually.
  4. To run one of these ad hoc jobs, trigger the Event and specify the job name you want to run in the Root jobs to run field. For example, to run job Myjob123, specify Myjob123 in the Root jobs to run field.

    Note: The job name is not case sensitive. You could specify MYJOB123, myjob123, or MyJoB123.

Explanation

When you specify a single job name in the Root jobs to run field, only that job is selected to run. This lets you predefine ad hoc jobs and their requirements, and run them on demand.

In the Root jobs to run field, you can also specify a job name followed by a plus (+) sign to include the job and all its successors, or specify a list that contains job names and/or job names followed by a plus sign. For example, specify Myjob123, Myjob456 to run both of these ad hoc jobs.

Note: If an ad hoc job has predecessors and successors, then normally you would define this as an on-request job in the Application containing the related jobs. You can request such jobs from Monitor using the Request command.