15.2.23 Settings for using the return value of the preceding job in the passing information setting jobs
If the preceding jobs of a passing information setting job ended with a return value other than 0, the return value of the preceding job is set for the return value of the passing information setting job. If you want to set the return value of the passing information setting job, and not the return value of the preceding job, set 0 for the option by using the procedure described below.
Set this option on the host where the passing information setting job is defined.
- Organization of this subsection
(1) Definition procedure
-
Stop the JP1/AJS3 service.
Execute the following commands to confirm that all processes have stopped:
# /etc/opt/jp1ajs2/jajs_stop# # /opt/jp1ajs2/bin/jajs_spmd_status
- #:
-
Confirm that automatic termination has been set.
-
Execute the following command to set the environment setting parameter described in (2) below:
jajs_config -k definition-key "parameter-name"=value
-
Restart JP1/AJS3.
The new settings are applied.
(2) Environment setting parameter
Definition key |
Environment setting parameter |
Explanation |
---|---|---|
[{JP1_DEFAULT|logical-host}\JP1NBQAGENT\Process]# |
"PassingInfoUsePreRc"= |
Settings for using the return value of the preceding job in the passing information setting jobs |
- #:
-
The specification of the {JP1_DEFAULT|logical-host} part depends on whether the host is a physical host or a logical host. For a physical host, specify JP1_DEFAULT. For a logical host, specify the logical host name.
For details about the definition of this environment setting parameter, see 2.3.2(81) PassingInfoUsePreRc in the Job Management Partner 1/Automatic Job Management System 3 Configuration Guide 2.
(3) Notes
-
If the preceding jobs of a passing information setting job ended with a return value other than 0, the return value of the preceding job is set for the return value of the passing information setting job (If there are multiple preceding jobs, the logical OR of all the return values is set. If the passing information setting job is re-executed, the return value of the preceding job from the last time that the passing information setting job was executed is set). Therefore, if you set 1 for environment setting parameter PassingInfoUsePreRc, and the return value of the preceding job exceeds the warning threshold or abnormal threshold defined for the passing information setting job, the passing information setting job will either end with a warning or end abnormally. If you do not want the passing information setting job to end with a warning or to end abnormally, either set a value higher than the return value of the preceding job for the warning threshold and abnormal threshold of the passing information setting job, or set 0 for environment setting parameter PassingInfoUsePreRc.
-
If you set 1 for environment setting parameter PassingInfoUsePreRc, and the return code of the preceding job is a negative value, the passing information setting job will end abnormally. If the return code of the preceding job is a negative value, set 0 for environment setting parameter PassingInfoUsePreRc.
-
If you set 1 for environment setting parameter PassingInfoUsePreRc, and the preceding jobs of a passing information setting job ended with a return value other than 0, the cause of the error that occurred in the passing information setting job cannot be determined from the return value set for the passing information setting job. Therefore, in JP1/AJS3 - View, in the Execution Result Details dialog box, check the execution results of the passing information setting job.