Hitachi

Job Management Partner 1 Version 10 Job Management Partner 1/Advanced Shell Description, User's Guide, Reference, and Operator's Guide


6.2.7 Commands for restarting execution of the job definition script

There are three different ways to restart execution of the job definition script:

The return command is used to terminate a function. The signal command is used to send a signal to the job definition script.

When execution of the job definition script stops after execution of a command, a message, the line number of the next line that is scheduled to be executed, and the line in the source file are displayed in one of the formats shown in the following.

For a job definition script that is specified in the command for executing a batch job or a job definition script that is specified in the #-adsh_script extended script command
line-number: line-contents-in-source-file
Current: command-string
  • line-number: Line number of the next command to be executed

  • line-contents-in-source-file: Contents of the line in the source file that correspond to the line number

  • command-string: Next command string to be executed

For an external script that is not specified in the #-adsh_script extended script command
Line: line-number
Current: command-string
  • line-number: Line number of the next command to be executed

  • command-string: Command string of the next command to be executed

Notes:
  • In the case of a job definition script that is executed in another process, <Another process script> is displayed as the command string.

  • If the job definition script being debugged is executing the trap command's action, the following is displayed:

    Line: <Trap action>
    Current: command-string
  • If the end-of-job definition script (EOF) has been reached, the following is displayed:

    Current: <EOF>
Example of output

This example displays the next line number to be executed and the contents of the line in the source file.

  • For a job definition script that is specified in the command for executing a batch job or a job definition script that is specified in the #-adsh_script extended script command

    100: echo "aaa" [Figure] The next process to be performed is echo "aaa" on line 100.

    Current: echo [Figure] The command to be executed then is echo.

  • For an external script that is not specified in the #-adsh_script extended script command

    Line: 50 [Figure] The next process to be performed is line 50 in the external script.

    Current: num=1 [Figure] The process to be performed then is num=1.