Scheduling job dependencies
The Advanced Job Scheduler allows you to set up dependencies that reflect how jobs are processed in your environment. Dependencies determine when a job or group of jobs can run. You can select to require all dependencies to be met before a job can run, or you can require at least one dependency to be met before the job can run.
Dependencies include the following items:
- Job dependencies
- Job dependencies refer to predecessor and successor relationships for jobs. Predecessor jobs are those that must run before the successor job runs. A successor job is a job that runs after all the predecessor jobs have been processed. There can be multiple successor jobs for a single predecessor job as well as multiple predecessor jobs for a single successor job. In addition, you can specify that a dependent job is skipped if its predecessors and successors run on a day that the dependent job is not scheduled to run.
- Active dependencies
- Active dependencies are lists of jobs that cannot be active when the selected job is to be submitted. If any of the jobs are active, the Advanced Job Scheduler will not allow the specified job to run. The selected job is delayed until all the jobs in the list are inactive.
- Resource dependencies
Resource dependencies are based on several things. Each type that follows describes the areas that are checked. Following are the types of resource dependencies:
- File
- The job is dependent on the existence or non-existence of a file and whether it meets the specified allocation level to be processed. It can also check whether records are present before the job is processed. For instance, JOBA can be set up so that it only runs when file ABC exists, and the file can be allocated exclusively and if records are present in the file.
- Object
- The job is dependent on the existence or non-existence of a QSYS type object and whether it meets the specified allocation level to be processed. For instance, JOBA can be set up so that it runs only when data area XYZ exists. The job can also be dependent on the existence or non-existence of an object found in the integrated file system. If the dependency is based on any object in the path, end the integrated file system path with a forward slash '/'.
- Hardware configuration
- The job is dependent on the existence or non-existence of a hardware configuration and its status to be processed. For instance, JOBA can be set up so that it runs only when device TAP01 exists and has a status of Available.
- Network file
- The job is dependent on the status of a network file to be processed.
- Subsystem
- The job is dependent on the status of a subsystem to be processed.
To work with job dependencies, follow these steps:
- Expand Work Management.
- Expand Advanced Job Scheduler.
- Expand Scheduled Jobs and select Scheduled Jobs to list the jobs.
- Select the Job whose dependencies you want to work with.
- Select one of the following: Job Dependencies, Active Dependencies or Resource Dependencies. Refer to the online help for more information.