Hitachi

JP1 Version 12 JP1/Automatic Job Management System 3 Operator's Guide


12.4.8 Define Details - [Queue Job] dialog box

The Define Details - [Queue Job] dialog box defines the details of a Queue job. A user uses this dialog box to register a job with JP1/NQSEXEC, JP1/OJE for VOS3, Himalaya, or AS/400 (JP1/OJE for Midrange Computer). For the restrictions for Himalaya, see The following table. For details about the restrictions for JP1/NQSEXEC, JP1/OJE for VOS3, AS/400 (JP1/OJE for Midrange Computer), see 1.3 Linkage with other programs in the manual JP1/Automatic Job Management System 3 Command Reference.

Table 12‒42: Restrictions for linkage with Himalaya

Definition item

Restrictions

Host name

Host name of the Himalaya system: Character string of up to 240 bytes

Queue name

Character string of up to 32 bytes

The system distinguishes between uppercase and lowercase letters.

Job name

Job name of the Himalaya system: Character string of up to 8 bytes

File name

Unspecifiable

Parameters

Unspecifiable

Priority

Specify None.

Transfer file

Unspecifiable

This dialog box contains the items displayed in common, and also contains the following pages:

Organization of this subsection

(1) Items displayed in common

The following figure shows the items displayed in common.

Figure 12‒108: Items displayed in common in the Define Details - [Queue Job] dialog box

[Figure]

The following explains the displayed items.

Unit name

Specify a unit name. Use a character string of up to 30 bytes. The default is Queue-Job.

Comment

Specify a comment for the unit. Use a character string of up to 80 bytes. The default is a blank.

Exec-agent

You cannot specify this for a Queue job.

(2) Definition page

The following figure shows the Definition page in the Define Details - [Queue Job] dialog box.

Figure 12‒109: Definition page in the Define Details - [Queue Job] dialog box

[Figure]

The following explains the displayed items.

Host name

Specify the name of the host in which the Queue job is to be registered. Use a character string of up to 255 bytes. If the version of the connection-target JP1/AJS3 - Manager is 09-50 or later, you can specify a macro variable instead. The default is a blank.

Queue name

Specify the name of the host in which the Queue job is to be registered. Use a character string of up to 63 bytes. If the version of the connection-target JP1/AJS3 - Manager is 09-50 or later, you can specify a macro variable instead. The default is a blank.

Job name

Specify the name of the Queue job to be executed. Use a character string of up to 63 bytes. If the version of the connection-target JP1/AJS3 - Manager is 09-50 or later, you can specify a macro variable instead. The default is a blank.

If you leave this field blank, the system uses the file name minus its path information.

File name

Specify a file name for the Queue job to be executed. Use a character string of up to 511 bytes. The default is a blank. You can also use a macro variable.

You can specify an absolute path name, or a path name relative to the working path for job execution or the path specified by the PATH environment variable.

For a Windows host, the PATH environment variable is valid for the system environment variable. For a UNIX host, the PATH environment variable for the OS user that executes jobs takes effect.

If the script file name contains any blanks, they must be enclosed in double quotation marks (").

If JP1/AJS3 is linked with JP1/OJE for VOS3, the name of the file to be executed cannot be omitted.

Parameters

Specify job parameters. Use a character string of up to 1,023 bytes. The default is a blank. You can also use a macro variable.

Priority

Select the priority of job execution. You can set None, or 1 to 5. The highest priority is 5. The default is None.

When None is selected, the priority depends on the definition of the upper-level jobnet. If None is selected here when None is specified for all upper-level jobnets up to the highest-level jobnet, the priority value specified for the DEFAULTPRIORITY environment setting parameter is assumed. If the DEFAULTPRIORITY environment setting parameter is not set, 1 is assumed. For details about how to specify the environment setting parameter DEFAULTPRIORITY, see 20.4.2(108) DEFAULTPRIORITY in the JP1/Automatic Job Management System 3 Configuration Guide.

For a UNIX host, if users who execute jobs resulting from mapping do not have superuser privileges, specifying the value of 4 or 5 will result in an authority error at the time of job execution.

The following gives the values you can specify, and their meanings.

Table 12‒43: Specifiable values and execution priority

Specifiable values

For UNIX

For Windows

1

nice value +20

Lower than interactive processing

2

nice value +10

Lower than interactive processing

3

nice value

Equal to interactive processing

4

nice value -10

Higher than interactive processing

5

nice value -20

Higher than interactive processing

Supplementary note

Windows provides three priority stages. Specify the following three priority classes to start a job process.

  • If the specified value is 1 or 2, the job process runs when the system is idle. (Specify IDLE_PRIORITY_CLASS, which Windows stipulates.)

  • If the specified value is 3, the job process runs as a general one. (Specify NORMAL_PRIORITY_CLASS, which Windows stipulates.)

  • If the specified value is 4 or 5, the job process runs before the thread of the process to which you assigned the above priority class. (Specify HIGH_PRIORITY_CLASS, which Windows stipulates.)

In UNIX, JP1/AJS3 service's nice value used when jajs_spmd is executed is used as the default (base) nice value. When the JP1/AJS3 service's nice value has not been set, 20 is assumed as the nice value.

For example, when the priority setting is 1 and the nice value is 20, the priority value is calculated as shown below.

39 [Figure] 20 (initial value) + 20 (increment)

If the resulting value is not within the possible nice value range (0-39), the maximum value is 39 and the minimum value is 0.

End judgment

Select conditions for end judgment.

Rule

The displayed items vary depending on the rule selected in the Rule drop-down list. In the initial status, Judgment by threshold is selected and the thresholds for the Warning and Abnormal levels are displayed. You can select one of the following rules for end judgment.

  • Always normal

    Always terminates the Queue job normally. You can specify neither Warning nor Abnormal.

  • Always abnormal

    Always terminates the Queue job abnormally. You can specify neither Warning nor Abnormal.

  • Judgment by threshold

    Define reference values for the normal end and the warning end, or for the normal end and the abnormal end. In the Warning and Abnormal text boxes, you can set 0 to 2,147,483,647. The default is a blank for Warning, and 0 for Abnormal.

    By default, the system assumes an abnormal end if the return code is other than zero. If you set Warning, the system assumes a normal end if the return code is from zero to the value of Warning. It assumes warning end if the return code is larger than the value of Warning. If you set Abnormal, the system assumes a normal end if the return code is from zero to the value of Abnormal. It assumes an abnormal end if the return code is not larger than -1 or larger than the value of Abnormal. If you specify both Warning and Abnormal, the system assumes as follows:

    Normal end: The return code is from zero to the Warning value.

    Warning end: The return code is larger than the Warning value but not larger than the Abnormal value.

    Abnormal end: The return code is not larger than -1 or larger than the Abnormal value.

    In UNIX, the return codes only have positive values from 0 to 255.

    If the program exits with a negative value, the return code is assumed to be 256 + (exit code). For example, if the program exists with -1, the system assumes 256 - 1 = 255.

Retry on abnormal end

Select whether to retry execution when the executable file ends in an error.

You can select this option when all of the following conditions are met:

  • The version of the connection-target JP1/AJS3 - Manager is 10-00 or later

  • The database of the connection-target JP1/AJS3 - Manager is a standard configuration

  • Judgment by threshold is selected in the Rule drop-down list

You can specify No or Yes. The default is No.

This item is displayed in JP1/AJS3 - View version 10-00 and later.

Return code

If Yes is selected for Retry on abnormal end, specify the range of return codes for which to retry jobs.

  • Greater than or equal to

    Specify the lowest return code for jobs that are to be retried. A job is retried when its return code is greater than or equal to this value.

    You can specify a value in the range from 1 to 4,294,967,295. The default is a blank. If you omit this setting, a value one greater than the value specified in Abnormal is used.

  • Less than or equal to

    Specify the highest return code for jobs that are to be retried. A job is retried when its return code is less than or equal to this value.

    You can specify a value in the range from 1 to 4,294,967,295. The default is a blank. If you omit this setting, 4,294,967,295 is used.

This item is displayed in JP1/AJS3 - View version 10-00 and later.

Maximum retry times

When Yes is selected for Retry on abnormal end, specify the maximum number of times a job can be retried. You can specify a value in the range from 1 to 12. The default is 1.

This item is displayed in JP1/AJS3 - View version 10-00 and later.

Retry interval

When Yes is selected for Retry on abnormal end, specify how long the system waits before retrying a job when an error occurs in an executable file. You can specify a value in the range from 1 to 10 (minutes). The default is 1.

This item is displayed in JP1/AJS3 - View version 10-00 and later.

Important

Do not specify, as the file name, the path beginning with the network drive name. Specify the path beginning with a computer name such as \\computer-name\shared-folder\execution-file-name. Do not use a path beginning with a network drive name.

(3) Transfer File page

The Transfer File page in the Define Details - [Queue Job] dialog box defines settings for transferring a file required to execute a job from JP1/AJS3 - Manager to JP1/AJS3 - Agent. You can transfer only text-format files.

The following figure shows the Transfer File page in the Define Details - [Queue Job] dialog box.

Figure 12‒110: Transfer File page in the Define Details - [Queue Job] dialog box

[Figure]

The following explains the displayed items.

Transfer file 1 - Transfer file 4

You can set up to four transfer files for one job.

File to transfer

Specify a file in JP1/AJS3 - Manager. Use a character string of up to 511 bytes. Set a full path file name. If the version of the connection-target JP1/AJS3 - Manager is 09-50 or later, you can specify a macro variable instead. The default is a blank.

Destination file

Specify the name of the file to be transferred to the agent host. Use a character string of up to 511 bytes. Set a full path file name. If the version of the connection-target JP1/AJS3 - Manager is 09-50 or later, you can specify a macro variable instead. The default is a blank.

Cautionary note

JP1/AJS3 transfers transfer files from the manager host to the agent host. It also transfers result files (standard output files and standard error output files) from the agent host to the manager host. When files are transferred, each file is converted into the character code set that the JP1/AJS3 service on the destination host is using. Therefore, you must ensure that the character code set that the files use and the character code set that JP1/AJS3 uses are identical.

  • For transfer files

    When you specify transfer files for a Queue job, make sure that the character code set for the JP1/AJS3 service at the manager host is identical to the character code set for the source files. When you specify transfer files for a job submitting jpqjobsub and other commands, make sure that the character code set for the command execution process is identical to the character code set for the source files.

  • For result files

    You must make sure that the character code set for job-generated result files is identical to that for the JP1/AJS3 service at the agent host.

For example, if the JP1/AJS3 service on the manager host is started using Japanese Shift JIS and the JP1/AJS3 service on the agent host is started using Japanese EUC, then if you transfer files encoded in Japanese Shift JIS from the manager host to the agent host, the destination files are created with Japanese EUC encoding.

For details on the JP1/AJS3 character code settings, see 13.4.1 Setting the language environment in the JP1/Automatic Job Management System 3 Configuration Guide.

For details on the characters that can be used in the data of files to be transferred, see 2.4.2(7)(a) Available characters in the JP1/Automatic Job Management System 3 System Design (Configuration) Guide.

Important

Do not specify, as the file name, the path beginning with the network drive name. Specify the path beginning with a computer name such as \\computer-name\shared-folder\execution-file-name. Do not use a path beginning with a network drive name.

(4) Attributes page

The following figure shows the Attributes page in the Define Details - [Queue Job] dialog box.

Figure 12‒111: Attributes page in the Define Details - [Queue Job] dialog box

[Figure]

The following explains the displayed items.

Hold

Specify whether to place the unit in the hold status in advance. You can specify No or Yes. The default is No.

Type

Set the unit type to Normal or Recovery. The default is Normal.

Set timeout period

You cannot specify this for a Queue job.

Timeout period

You cannot specify this for a Queue job.

Delayed end

Specify whether to monitor delayed end of jobs based on time required for execution. Select the Time-required-for-execution check box to monitor delayed end of jobs. The check box is not selected by default.

When you select the Time-required-for-execution check box, specify the time required for execution for a job from 1 to 1,440 (in minutes).

This section appears for the JP1/AJS3 - View, or JP1/AJS2 - View of version 08-50 or later. For details about cautionary notes on monitoring of delayed end of jobs based on time required for execution, see 5.1.3 End delay monitoring based on time-required-for-execution in the JP1/Automatic Job Management System 3 System Design (Work Tasks) Guide.

Owner

Specify the owner of the unit. Use a character string of up to 31 bytes. The default is the login JP1 user name. Note that if the upper-level unit-attribute inheritance function has been set for the upper-level jobnet, the default is the owner of the upper-level unit.

JP1 resource group

Specify a JP1 resource group name. Use a character string of up to 63 bytes. You can specify alphanumeric characters and underscores (_). The default is the JP1 resource group name of the upper-level unit. If you specify a blank, you are not authorized to access this group.

Executed by

Select the user who executes the job. The default is User who registered. You can select either of the following.

  • User who registered

    Performs user mapping for the JP1 user who registered the job. The system executes the job under the converted OS user account.

  • User who owns

    Performs user mapping for the JP1 user who owns the job. The system executes the job under the converted user account.

You must perform user mapping on the host where you want to execute the job so that the specified user is converted to a OS user.

If the execution-user fixing function is configured for the upper-level unit, the execution user conforms to the unit-attribute profile regardless of the contents of this field.