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)