adddep job

You can use the command option to add dependencies to a job.

Overview

The purpose of adding dependencies is to expand the scope of a job. You can use the command option to link other jobs and set specific time limits. You can add multiple dependencies at the same time and must add at-least one to perform the action. When you add multiple dependencies, use the semicolon (;) as a separator. To add dependencies to a job, you must have adddep access to the job.

Syntax and command line options

Before you run the command, you must give the details of the command line options such as job name, dependencies and required permissions. You can run the command as described below.

ocli plan adddep job | adj jobselect dependency [;noask]
Important: The jobselect and dependency are mandatory parameters.

You can add the dependency according to the specific results you want to accomplish. The details that are required with each parameters are described below.

Jobselect

Specify the job to update, by using attributes and qualifiers.

For example, enter the following command WA_AGT_0#JOB_STREAM.JOB.

Dependency
You can specify the type of dependency and must add at least one to complete the command. The type of dependencies that can be used to create the command are listed below.
Restriction: Wildcard characters are not permitted.
Command Reference
at time[timezone | tz tzname][+n day[s] | mm/dd | mm/dd/yy] at
deadline time [timezone | tz tzname][+n day[s] | mm/dd | mm/dd/yy] deadline
every rate [+n day[s] | mm/dd | mm/dd/yy] every
follows [[folder/]workstation#][folder/]{jobstreamname[hhmm [mm/dd[/yy]]][.job | @] | jobstream_id.job;schedid}| job[,...] [if 'condition_name[| condition_name][| ...]'] follows
maxdur time [onmaxdur action] maxdur
mindur time [onmindur action] mindur
until time [timezone|tz tzname][+n day[s]] [;onuntil action] until and onuntil
Notes:
  1. If you add a dependency on a job stream to a job twice, the dependencies are processed twice.
  2. When you add a dependency after the job is completed, the dependency is resolved only for subsequent command runs.
;noask

When you add the noask option as an argument, the agent does not ask for confirmation before it acts on each qualifying item.

Examples

  1. To add an external follows dependency on job JOB033 in job stream RTW#/FOLDER2/SCHED_05(0800 03/25/22) from JOBD in job stream MLN#/FOLDER5/OLD_TEST(0700 04/05/22), run the following command:
    ocli plan adj=RTW#/FOLDER5/OLD_TEST(0700 04/05/22).JOBD ; 
    follows RTW#/FOLDER2/SCHED_05(0800 03/25/22).JOB033
  2. Run the following command to stop the job PAYACK_JOBS in job stream PRESENT_JS when it has run for more than 8 hours and 2 minutes:
    ocli plan adj DUBAI#PRESENT_JS.PAYACK_JOBS ;
    maxdur=802 ;onmaxdur kill