Hitachi

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


6.2.15 Displaying function information (info functions command)

The info functions command displays information about functions. The abbreviation for the info functions command is i f. The following shows the format of the info functions command:

info functions[ function-name]

When a function name is specified in the argument, the command displays that function name and the corresponding file name and line number. If the argument is not specified, the command displays all function names and their file names and line numbers. The following shows the display format:

Function  File:Line
function-name  file-name:line-number
...

The following describes the info functions command's processing.

When the info functions command argument is omitted

The command displays all function names and the corresponding file names and line numbers.

When the info functions command argument is specified
  • Name of an existing function

    The command displays the specified function's name and the corresponding file name and line number.

  • Other

    The command outputs an error message.

Notes:

Information about functions specified in the job definition script or in an external script specified in the #-adsh_script extended script command can be referenced even before the job definition script executes because this information is loaded automatically when the adshexec command starts. However, information about functions that are not specified in the #-adsh_script extended script command is not displayed while the job definition script is being run by the run command and until the processing defining that function is completed.

Example of output

This example displays function names and the corresponding file names and line numbers:

Function  File:Line
funcA     script1.ash:100
funcB     script2.ash:10
funcXXX   script1.ash:50