8.150 SCRIPT (Run a sequence of commands contained in a file)

8.150.1 Function

The SCRIPT command sequentially executes the commands contained within the file filename. The script
file itself may also contain script commands but the system ensures that no more than 10 levels of scripts
are invoked at any one time to avoid recursion loops. Enter the command without any arguments to list all
currently running scripts.

8.150.2 Syntax

Descriptive

[ filename [filename ... ]]

Diagram



~¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬®

filename ¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬ÊÍ

8.150.3 Parameter

filename

The name (and optionally the path) of the script file to be executed.

8.150.4 Examples

Example 1:

Execute script file “Script1.rc”.

HHC00013I Herc command: 'script D:\MVS\Conf\Script1.rc'

HHC02260I Script 5: begin processing file 'D:/MVS/Conf/Script1.rc'

Figure 276: SCRIPT command (Execute script file)

Example 2:

List all currently running scripts.

HHC00013I Herc command: 'script'

HHC02315I Script id:2, tid:00000D2C, level:1, name:D:\MVS\Conf\Script1.rc

HHC02315I Script id:3, tid:00000A4C, level:1, name:D:\MVS\Conf\Script2.rc

HHC02315I Script id:4, tid:000017E8, level:1, name:D:\MVS\Conf\Script3.rc

HHC02315I Script id:5, tid:00000E6C, level:1, name:D:\MVS\Conf\Script4.rc

HHC02315I Script id:6, tid:00000B50, level:1, name:D:\MVS\Conf\Script5.rc

Figure 277: SCRIPT command (list currently running scripts)

Previous Page Next Page