Hitachi

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


7.3.40 SPOOLJOB_CHILDJOB parameter (defines how a spool job of a child job is to be handled)

Syntax

#-adsh_conf SPOOLJOB_CHILDJOB {MERGE|DELETE}

Description

This parameter specifies whether the spool job of a child job is to be deleted or is to be merged into the spool job of the root job when the child job terminates.

Operands

MERGE

This command specifies that the spool job of a child job is to be merged into the spool job of the root job when the child job finishes. As a result, the following processing occurs:

  • The job execution logs of child jobs are merged into the job execution logs of the root job and are output in the order in which the child jobs terminated.

  • JOBLOG and SCRIPT of the root job are created with contents into which JOBLOGs and SCRIPTs of the child jobs have been merged.

  • Job execution logs are output to the following location in the syntax that clearly shows whether the output contents are for the root job or child job:

    During normal execution: Standard error output (STDERR, step-number_step-name_STDERR)

    During debugging: Standard output and standard error output on the terminal screen

  • The program output data files assigned by the #-adsh_spoolfile command while executing a child job are created in the spool job directory of the root job with the following names:

    #-adsh_spoolfile command's execution location

    File name to be assigned (in Windows, the extension .sysout is added.)

    If outside the job step of a child job:

    C number giving the order in which a child job starts_0000_job-name_file-environment-variable-definition-name-sequence_file-environment-variable-definition-name

    If within the job step of a child job:

    C number-giving-the-order-in-which-a-child-job-starts_step-number_step-name_file-environment-variable-definition-name-sequence_file-environment-variable-definition-name

If the same job definition script is executed for multiple times as a child job, SCRIPT is output for the number of times the script is executed.

For details about how to create a spool job directory, see 3.4.2 Outputting job execution results to spool. For details about the format for outputting job execution logs, see (3) Merging a child job's spool job into the root job's spool job.

If you specify MERGE, the maximum number of child jobs that can be started from a single root job, including child jobs started from child jobs, is 9,999,999. A child job that exceeds this limit finishes in an error. However, if the OS-specified process count or file count limit is reached first, the OS's error processing takes precedence.

For an example of the job execution log output if you specify MERGE, see 3.5.3 Examples of job execution log output(if you delete the spool job of a child job).

DELETE

This command deletes the spool job of a child job when the child job terminates.

This command only outputs contents of JOBLOG in the job execution log of a child job to the standard error output.

For an example of the job execution log output if DELETE is specified, see 3.5.3 Examples of job execution log output(if you delete the spool job of a child job).

Notes

Example