rerun
You can use the rerun command to rerun a job.
Overview
SUCC
or
FAIL
, or ABEND
state. When you submit the
command, the job rerun of the job is placed in the same job stream as the original
job, and all the associated dependencies of the original job are added. If you rerun
a job that is scheduled to run multiple times, the rerun is also scheduled to start
at the same rate. The rerun jobs are displayed with the notation >>rerun
as
.Syntax and command line options
ocli plan rerun | rr jobselect [from=[[folder/]wkstat#] job ;[at=time]]|[streamlogon|logon=new_logon];[docommand="new_command"|script="new_script"] ;step=step ;[noask]
You must provide a job name, which is a mandatory parameter to run the command. All
the other parameters are optional. The details required with each parameters are as
follows:- jobselect
- Specify the job which you want to rerun, by means of attributes and qualifiers.
- from=[[folder/]wkstat#]job
- Instead of running the job specified in jobselect, you
can specify the definition of the job that you want to run. You can also run
the jobs that are in
SUPPR
state, if they are from job streams that are not in suppressed or cancelled state.
- at = time
- You can specify the start time for the rerun as follows.
hhmm: Specify the hour and minute.time = hhmm [timezone|tz tzname] [+n days | date]
+n days: Specify the number of days until the next rerun.
date: Specify the date of the next occurrence rerun in the following formatmm/dd/yy.
timezone|tz name: Specify the timezone. For time zones, see timezone.
- step=step
-
You can rename the job specified in the data definition. In Orchestration CLI, jobs that rerun with the step=step option are displayed with the
>>rerun step
notation.
- streamlogon|logon=new_logon
-
You can use the option to run the job under a new user name. The option is mutually exclusive with from parameter. The option is only applicable for completed jobs.
- docommand="new_command"
- You can specify a new command to rerun the jobs instead of using the original command. The option is applicable only for completed jobs. The option is mutually exclusive with script and from.
- script="new_script"
- You can specify new script to rerun the jobs instead of original script. The option is only applicable for completed jobs. The option is mutually exclusive with docommand and from.
- 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
- To rerun the
job4
job in thesked1
job stream on themain
workstation, run the following command:ocli plan rr main#sked1.job4
- To rerun the
job5
job in thesked2
job stream using the job definition for thejobx
job where the job'sat
time is set to 6:30 PM, run the following command:ocli plan rr sked2.job5;from=jobx;at=1830
- To rerun the
job3
job in thesked4
job stream using thejstep2
job name, run the following command:ocli plan rr sked4.job3;step=jstep2