Job Management Partner 1/Automatic Job Management System 3 Overview

[Contents][Glossary][Index][Back][Next]


4.5.11 Rerunning a job or jobnet

You can specify the execution results of a jobnet or job that has completed execution, and rerun it.

For details about rerunning a jobnet when the execution sequence of the root jobnet is controlled using a jobnet connector, see 2.2.4(5) Re-execution of jobnet connectors and connection-destination jobnets in the Job Management Partner 1/Automatic Job Management System 3 System Design (Work Tasks) Guide.

There are two methods of rerunning a job or jobnet. You can rerun the root jobnet, or rerun a nested jobnet or job. These methods are described below.

You can perform this operation using either the GUI, or the ajsrerun command. For details on using the GUI, see 9.11 Re-executing jobnets and jobs in the Job Management Partner 1/Automatic Job Management System 3 Operator's Guide. Alternatively, for details on the ajsrerun command, see the description of ajsrerun in 2. Commands in the manual Job Management Partner 1/Automatic Job Management System 3 Command Reference 1.

Organization of this subsection
(1) Rerun the root jobnet
(2) Rerun a nested jobnet or job
(3) The job preceding a judgment job ended abnormally
(4) Re-executing the dependent job of a judgment job
(5) Notes about rerunning jobnets or jobs
(6) Notes on resuming processing while a recovery job is running
(7) Notes on re-executing a jobnet with start conditions

(1) Rerun the root jobnet

You can choose one of the following rerun methods when you rerun a root jobnet.

From abnormally ended job
This method reruns from an abnormally ended job. If the rerun job ends normally, succeeding jobs are executed and processing continues.
When a nested jobnet has ended abnormally, you can rerun from the specific job in the nested jobnet that ended abnormally.

From after abnormally ended job
This method reruns from the job that follows the abnormally ended job.
When a nested jobnet has ended abnormally, you can rerun from the job that follows the job that ended abnormally in the nested jobnet.

From abnormally ended jobnet
This method reruns from the beginning of an abnormally ended nested jobnet.
When you rerun from an abnormally ended jobnet, the jobs that ended normally in the jobnet also rerun.
If you rerun from an abnormally ended job, jobs that ended normally before the abnormally ended job are not rerun.

From top of jobnet
This method reruns from the top of the root jobnet.

Only jobs that ended with warning
This method reruns only jobs that ended with a warning. When a nested jobnet is defined, you can rerun the jobs that ended with a warning in the nested jobnet.

(2) Rerun a nested jobnet or job

You can choose from the following methods to rerun a nested jobnet or job.

From the specified jobnet or job
This method reruns from the specified jobnet or job. If the rerun jobnet or job ends normally, succeeding jobs are executed and processing continues.

From the job after the specified jobnet or job
This method reruns from the job that follows the specified job or nested jobnet.

Only the specified jobnet or job
This method reruns only the specified job or nested jobnet.

Rerunning a jobnet or job results in an error in the following cases:

In the following cases, attempting to execute a job or jobnet does not result in an error but they will not execute:

(3) The job preceding a judgment job ended abnormally

When the job preceding a judgment job ends abnormally, you can rerun jobnets or jobs from the root jobnet as follows.

# Procedure for rerunning a jobnet from the job after the job that ended abnormally
When a job preceding a judgment job ends abnormally, if you rerun the jobnet from the next job, the status of the job that ended abnormally changes to Ended normally. The process continues from the next judgment job.
When the judgment job makes a judgment using the return code of the preceding job, it uses the return code from when the preceding job ended abnormally.

(4) Re-executing the dependent job of a judgment job

The execution of the dependent job of a judgment job depends on the execution result of the judgment job. You might want to re-execute the dependent job if it terminates abnormally, but the method for re-executing a dependent job differs from that for executing ordinary jobs.

When an ordinary job (PC job or Unix job) has terminated abnormally, you can select and re-execute the job. However, if a dependent job of a judgment job has terminated abnormally, you cannot re-execute it by selecting it or the judgment job. To re-execute a dependent job, select and re-execute the upper-level jobnet.

(5) Notes about rerunning jobnets or jobs

Take note of the following when you rerun a jobnet or job.

Legend:
Root: Root jobnet
Nested: Nested jobnet
Y: Applies
N: Does not apply
N/P: Rerun is not possible (an error message is output)

Note
Numbers 1 to 6 indicate the status when the upper-level jobnet is terminated before the preceding unit is rerun.

#1
Indicates whether each type of unit can enter the indicated status.

#2
Partial rerunning of an interrupted unit depends on the setting (V5 or V6) of the environment parameter VRSHIFT_INTRERUN. It is set to V6 by default. The table shows the status for each setting.

#3
Since this status only applies to a start condition (.CONDITION) or an event icon in a start condition, the unit cannot be a preceding unit.

#4
Delay is additional information relating to the unit status. Therefore, the delay status does not change even if the succeeding unit is rerun.

(6) Notes on resuming processing while a recovery job is running

If a job has terminated abnormally, JP1/AJS3 starts a sequence of recovery jobs or jobnets. However, if you resume the processing from the job after the abnormally terminated one, the rest of the recovery jobs or jobnets will be placed in the Not executed + Ended status and will not be executed. In this case, resume processing after all recovery processes have been performed.

If you want to resume the subsequent jobs even when an error is detected, consider whether you can use a judgment job to perform recovery with a dependent job when the termination code of the judgment job has exceeded a threshold.

(7) Notes on re-executing a jobnet with start conditions

When monitoring of start conditions for a root jobnet is completed and the jobnet status changes from Now monitoring to any of the following statuses, the status of the lower-level units becomes Not executed + Ended.

Because the Not executed + Ended status is treated as an abnormal termination, be careful when you re-execute a generation of a jobnet that has any of the following statuses:

[Contents][Back][Next]


[Trademarks]

Copyright (C) 2009, 2010, Hitachi, Ltd.
Copyright (C) 2009, 2010, Hitachi Solutions, Ltd.