Hitachi

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


2.6.22 Preparation for using script development parts

JP1/Advanced Shell provides script development parts so you can improve the productivity of creating job definition scripts. For details on script development parts, see the 10. Script development parts.

Follow the procedure below to use the script development parts.

  1. Script development parts are stored in the following location*. Script development parts can be copied and stored in a different location.

    For the execution environment of Windows:

    destination-folder\JP1ASE\parts\en

    destination-folder\JP1ASE\parts\ja

    For the development environment of Windows:

    destination-folder\JP1ASD\parts\en

    destination-folder\JP1ASD\parts\ja

    For the execution environment of UNIX:

    /opt/jp1as/parts/en

    /opt/jp1as/parts/ja

    *: Script development parts are deleted when JP1/Advanced Shell is uninstalled. In addition, script development parts are updated when performing an overwrite installation.

  2. Specify the FUNCTION for the environment setting parameter CMDRC_CMDGRP_CHECK.

  3. Load the script development parts to be used by using one of the following methods.

    • Loading the file for script development parts by using the . (dot) command (The file can also be loaded by using the #-adsh_script command.)

      The following is an example of a job definition script for loading the script development part cmpDate in which Japanese comments are written:

      . "${ADSH_DIR_PARTS_JA}cmpDate"

      The following is an example of a job definition script for loading the script development part getFileSize in which English comments are written:

      . "${ADSH_DIR_PARTS_EN}getFileSize"
    • Loading the file for script development parts by using the function-preload functionality

      The following is an example of a job definition script for loading the script development part cmpDate in which Japanese comments are written:

      export FPATH=/opt/jp1as/parts/ja

    For details on how to use each function, see the following items.

  4. Call the script development parts in the job definition script.