Hitachi

JP1 Version 12 JP1/Automatic Job Management System 3 Configuration Guide


15.2.2 Defining search paths for a file to be transferred

When you have defined search paths for a file that is to be transferred, the location of the file can also be resolved from a relative path.

This subsection describes how to define a search path.

Organization of this subsection

(1) Definition procedure

  1. Stop the JP1/AJS3 service.

    Execute the following commands to confirm that all processes have stopped:

    # /etc/opt/jp1ajs2/jajs_stop#1
    # /opt/jp1ajs2/bin/jajs_spmd_status
    # /opt/jp1ajs2/bin/ajsqlstop#2
    # /opt/jp1ajs2/bin/ajsqlstatus#2
    #1:

    Confirm that automatic termination has been set.

    #2:

    This command needs to be executed only if queueless jobs are used.

  2. Execute the following command to set the environment setting parameters described in (2) below:

    jajs_config -k "definition-key" "parameter-name-1"=value-1 ["parameter-name-2"=value-2]
  3. Restart the services that you stopped in step 1.

    The new settings are applied.

    Important

    Make sure that you perform the above procedure on the host on which a job operation has been requested. For example, if you use the jpqjobsub command to submit a job, perform the procedure on the host on which you execute the command.

    Note that this function is not valid for result files.

(2) Environment setting parameters

Table 15‒13: Environment setting parameters used to define the search path for a file that is to be transferred

Definition key

Environment setting parameter

Explanation

[{JP1_DEFAULT|logical-host}\JP1NBQCLIENT\PathEnv]#

"All Users"=

Specifies the search path for the file to be transferred.

"JP1-user-name"=

Specifies the search path for the file to be transferred.

#:

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 these environment setting parameters, see the following:

(3) Definition example

Conditions:

Search paths common to all JP1 users: /home/user1/trans1 and /home/user1/trans2

Name of the file to be transferred: /home/user1/trans1/TransFile1

Definition example:
  • Definition of the file to be transferred in the job

    Name of the file to be transferred: TransFile1

  • Definition of the search paths on the host sending the submit request

    jajs_config -k "[{JP1_DEFAULT|logical-host}\JP1AJSMANAGER\SCHEDULER\scheduler-service\QUEUE\CLIENT\PathEnv]"

    "All Users"="/home/user1/trans1::/home/user1/trans2"

    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.

When these settings are specified, on the host that sends a submit request, /home/user1/trans1/TransFile1 is set as the file to be transferred.