Hitachi

JP1 Version 11 JP1/Advanced Shell Description, User's Guide, Reference, and Operator's Guide 


3.4.4 Suppressing output of information and warning messages to job execution logs

If you intend to use job execution results with other programs, you might want to suppress the following types of output:

To suppress these outputs, use one the following methods to specify the simple output mode or the minimum output mode:

If both are specified, the adshexec command specification takes effect. If neither is specified, the expansion output mode is assumed.

Organization of this subsection

(1) Differences in output contents among the expansion output mode, the simple output mode, and the minimum output mode

The following table describes the differences in the output contents among the expansion output mode, the simple output mode, and the minimum output mode.

Table 3‒1: Differences in output contents among the expansion, the simple, and the minimum output modes

Output timing

Expansion output mode

Simple output mode

Minimum output mode

Job execution

The contents of the standard output and the standard error output depend on the type of job:

  • Root jobs

    The contents of the standard output and the standard error output are output to the spool job directory.

  • Child jobs

    Output to their output destinations at the time the process started.

The contents of the standard output and the standard error output are output to their output destinations at the time the process started.

The job controller messages output to standard output and standard error output are limited to error messages.#1

Standard output and standard error output are the same as the output destination when the process starts.

Job controller messages output to standard output and standard error output are limited to error messages, with some excluded.#1, #3

Job termination

Job execution logs are output to the standard error output (for child jobs, the output is to the root-job's standard error output#2).

Job execution logs are not output to the standard error output. However, error messages to be output only to JOBLOG are also output to the standard error output during job execution in order to report errors.

A child job's JOBLOG is created under the root job's spool job directory and is retained even after the job has terminated.#2

This handling is in effect regardless of the specification of the JOBEXECLOG_PRINT parameter.

Same as at the left

Debug execution

JOBLOG is output to the standard error output at suitable times.

Job controller messages that are to be output to standard output and standard error output are output to the standard output and standard error output that were in effect when debug execution started.

JOBLOG is not output to the standard error output.

Job controller messages that are to be output to standard output and standard error output are output to the standard output and standard error output that were in effect when debug execution started.

When debugging is terminated, only error messages are output. However, a child job that is not subject to debugging is run in the same manner as in normal execution.

JOBLOG is not output to the standard error output.

Job controller messages that are to be output to standard output and standard error output are output to the standard output and standard error output that were in effect when debug execution started.

When debugging terminates, only messages that are not subject to output suppression are output. However, a child job that is not subject to debugging is run in the same manner as in normal execution.

#1

In addition to error messages, some messages are output as exceptions. For details about such exception messages and the destinations by message type, see 12.2 Message output destinations.

#2

Not output when a child job's job execution log is merged into the root job's job execution log (MERGE is specified in the SPOOLJOB_CHILDJOB parameter).

#3

For details on the error messages whose output is suppressed in minimum output mode, see 3.5.1 Outputting the contents of the job execution log by job type.

If you start a job definition script from another job definition script in the simple output mode or the minimum output mode, use child jobs. If a root job is started in the simple output mode or the minimum output mode, error messages are displayed in the standard error output.

(2) How to locate the spool job directory of a job that was executed in the simple output mode or the minimum output mode

When the simple output mode or the minimum output mode is selected, messages that display job IDs and spool job directory names are no longer output. The following describes how to locate the spool job directory of a job that was executed in the simple output mode or the minimum output mode: