TACL Reference Manual

Built-In Functions and Variables
HP NonStop TACL Reference Manual429513-018
9-285
#PAUSE Built-In Function
#PAUSE Built-In Function
Use #PAUSE to give control of your terminal to processes other than the current
TACL.
\node-name
is the name of the system on which the process resides.
$process-name
is the name of the process or process pair for whose termination TACL is to wait.
cpu,pin
is the CPU number and process identification number of the process.
Result
#PAUSE returns one of these:
Upon completion of the process, #PAUSE returns a termination status, a space,
and the process name, or the CPU number and the process identification number,
of the process. The termination status is one of these: STOP, ABEND, CPU, or
NET (see #NEWPROCESS Built-In Function on page 9-266).
If TACL is awakened while waiting for the completion of a process, #PAUSE
returns WAKE.
If TACL is awakened by the BREAK key, #PAUSE returns nothing.
Considerations
#PAUSE does not specify which process can access your terminal.
When you enter #PAUSE, the current TACL stops prompting for commands, thus
allowing any other processes to gain control of your terminal. TACL regains control
of your terminal, again displaying its prompt ( n> ), when it receives a process
deletion message from the specified process.
If the process you specify (process-name or cpu,pin) does not exist, or was not
created by the current TACL, #PAUSE waits until you press the BREAK key or
TACL receives a WAKE message.
If you do not specify a process, #PAUSE waits for the last process created by the
current TACL. If that process has already terminated, #PAUSE waits until you
press the BREAK key or TACL receives a WAKE message.
#PAUSE [ [\node-name.]{$process-name | cpu,pin } ]