8.44 CSCRIPT (Cancel a running script thread)

8.44.1 Function

The CSCRIPT command cancels a currently running script or all scripts. If ‘*’ or ‘ALL’ is given as argu-
ment then all running scripts are cancelled. If no argument is given only the first running script is can-
celled. To cancel a specific script, then ‘id’ can be given as argument, where ‘id‘ is the ID number of the
script to be cancelled. The ‘SCRIPT’ command may be used to display a list of all currently running
scripts. If no script is running, no action is taken.

8.44.2 Syntax

Descriptive

id]

Diagram

Êʬ¬¬ §¬¬¬¬¬¬¬¬¬¬¬§¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬ÊÍ



* ¬¬¬¬«



ALL ¬¬¬«




id

8.44.3 Parameter

id

The thread id of the script to be cancelled.

8.44.4 Examples

Example 1:

Cancel the first running script, given the case that currently five scripts (IDs 2,3,4,5,and 6) are running.

HHC00013I Herc command: 'cscript'

HHC02259E Script 2 aborted: 'user cancel request'

HHC00007I Previous message from function script_abort() at script.c[837]

HHC02265I Script 2: file 'D:/MVS/Conf/Script1.rc' aborted due to previous conditions

Figure 90: CSCRIPT command (cancel first script)

Example 2:

Cancel the script with the ID number 4 from the remaining four running scripts.

HHC00013I Herc command: 'cscript 4'

HHC02259E Script 4 aborted: 'user cancel request'

HHC00007I Previous message from function script_abort() at script.c[837]

HHC02265I Script 4: file 'D:/MVS/Conf/Script3.rc' aborted due to previous conditions

Figure 91: CSCRIPT command (cancel script with ID)

Example 3:

Cancel all still running scripts (with IDs 3,5 and 6).

HHC00013I Herc command: 'cscript all'

HHC02259E Script 3 aborted: 'user cancel request'

HHC00007I Previous message from function script_abort() at script.c[837]

HHC02265I Script 3: file 'D:/MVS/Conf/Script2.rc' aborted due to previous conditions

HHC02259E Script 5 aborted: 'user cancel request'

HHC00007I Previous message from function script_abort() at script.c[837]

HHC02265I Script 5: file 'D:/MVS/Conf/Script4.rc' aborted due to previous conditions

HHC02259E Script 6 aborted: 'user cancel request'

HHC00007I Previous message from function script_abort() at script.c[837]

HHC02265I Script 6: file 'D:/MVS/Conf/Script5.rc' aborted due to previous conditions

Figure 92: CSCRIPT command (cancel all scripts)

Previous Page Next Page