Hitachi

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


9.5.7 #-adsh_script command (calls an external job definition script file from the job definition script that is running)

Syntax

#-adsh_script job-definition-script-file-name

Description

This command inserts the contents of an external job definition script file at the time the job controller was launched into the currently-running job definition script file. You can call a maximum of 4,095 external job definition script files from a job definition script that is running. An external script that is called is unpacked within the job definition script that contains the calling function. That job definition script is then parsed and executed as a single job definition script.

Arguments

job-definition-script-file-name

Windows: ~<path name>((1 to 247 bytes))

UNIX: ~<path name>((1 to 4,096 bytes))

Specifies the path of the job definition script file that to be deployed. If you specify a relative path, it is interpreted relative to the current directory at the time the job controller was launched.

Return codes

Return code

Meaning

Return code of the last command to terminate in the external script that was called

Normal termination

1

Error termination

Note:

You cannot use an environment setting parameter to change the return code when the #-adsh_script command terminates normally.

Whether the #-adsh_script command terminates normally or with an error depends on whether the external job definition script file is inserted correctly. It does not depend on whether commands executed within the inserted external job definition script file terminated normally or with errors.

Notes