adddep sched

You can use the adddep command to add dependencies to a job stream.

Overview

To add the command option to make changes in a job stream, you must have adddep access to the job stream. For more information about security access roles, see Security role definition.

Syntax and command line options

Before you run the command, you must specify the options such as job stream name, dependencies, and required permissions. you can create the command as described below.

ocli plan adddep sched | ads = <jstreamselect> ><dependency><noask>

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

jstreamselect

Specify the job stream to update, by means of attributes and qualifiers. For more information, see to Selecting job streams in commands.

Dependency

Specify the type of dependency and add at least one to complete the command. The following table lists the type of dependencies that you can use to create the command line.

Command Reference
at= time[timezone | tz][+n day[s] | [mm/dd | mm/dd[/yy]] at
deadline= time [timezone | tz][+n day[s] | [mm/dd | mm/dd[/yy]]] deadline
follows=[workstation#]{jobstreamname[time [mm/dd[/yy]]][.job | @] | jobstream_id.job;schedid}| job[,...] [if 'condition_name[| condition_name][| ...]'] follows
until time [timezone|tz tzname][+n day[s]] | [;onuntil action] until
noask

When you add the option as an argument the agent will not to ask for confirmation before taking action on each qualifying job.

Notes:
  1. If you add a dependency on a job stream to another job stream twice, only one dependency is considered.
  2. When using the deadline keyword, ensure the bm check deadline option is set to a value higher than 0 in the localopts configuration file on the workstation you are working on. You can define the bm check deadline option on each workstation on which you want to be aware of the deadline expiration, or, if you want to obtain up-to-date information about the whole environment, define the option on the master domain manager. Deadlines for critical jobs are evaluated automatically, independently of the bm check deadline option.

    For more information about the bm check deadline option, refer to Setting local options.

  3. If you add a dependency to a job after it has completed, it is not evaluated. However, any subsequent reruns of the job will process the dependency correctly.
Restictions:
  1. Wildcard characters are not permitted.
  2. If you do not specify a workstation in follows, the default is the workstation on which the job runs.

Examples

  1. To add an external follows dependency to job JOBB in job stream CPUA#SCHED_02(0600 02/24/06) to job stream CPUA#TEST(0900 02/19/06), run the following command:
    ocli plan ads=CPUA#TEST(0900 02/19/06) ; follows