Running a server script

To process a script, use the RUN command. You can run a script that contains substitution variables by specifying them along with the RUN command.

About this task

To stop a script that is running, an administrator must halt the server. You cannot cancel a script after it starts by using an IBM® Storage Protect command.

Procedure

  • Preview the commands in a script to evaluate the script before you run it. To preview the script without running the commands, enter the RUN command with the PREVIEW=YES parameter. If the script contains substitution variables, the commands are displayed with the substituted variables.
  • Run a script that has no variables by entering the following command:
    run qaixc where qaixc is the name of the script.
  • Run a script that contains substitution variables by specifying the variable values with the command.
    Contents of the script:
    /*----------------------------------------------*/
    /* Sample continuation and substitution example */
    /* ---------------------------------------------*/
    SELECT-
    $1 FROM-
    NODES WHERE-
    PLATFORM='$2'
    To run this script, enter the following command:
    run qaixc node_name aix
    Where node_name is the value for the $1 variable and aix is the value for the $2 variable.