&PAUSE Control Statement
Using the &PAUSE control statement along with other commands,
you can code command lists that ask the operator questions and pick
up the entered responses. Use
the &BEGWRITE and &WRITE control statements to send instructions
to the operator. For example, you can code the command list to instruct
the operator to enter the NetView® GO
command followed by a value or values for a user variable. Then code
the &PAUSE statement to temporarily halt the command list. The
command list pauses until the operator enters the GO command to continue
processing, or the RESET command to end the command list. You can
code the &PAUSE command to enable the command list to pick up
the operands following the GO commands and take them as user variables.
See User Variables for more information.
Note:
- Using &PAUSE in an automation task command list or a command list that runs under the PPT is not valid.
- The VIEW command obtains operator input without requiring the use of the GO command.
The &PAUSE statement has the following syntax:
where:
- NOINPUT
- Pauses until the operator enters the GO or RESET command. Operands cannot be specified with the GO command. If the operator enters operands, an error message is returned. NOINPUT is the default.
- STRING variable
- Pauses until the operator enters the GO command with or without a string, or the RESET command. A previous &WRITE or &BEGWRITE statement notifies the operator to enter operands with the GO command. The entire string of operands is taken as one user variable. The variable can then be used in the command lists.
- VARS variable
- Pauses until the operator enters the GO command with or without the correct number of operands, or the RESET command. A previous &WRITE or &BEGWRITE statement notifies the operator to enter operands with the GO command. Each operand is taken as a user variable coded on the &PAUSE VARS statement. These variables can then be used in the command list.
When the command list interprets an &PAUSE control statement,
the letter P is displayed in the upper right corner
of the panel to alert the operator that the command list is in pause
state. Pause state means that the command list has halted and is waiting
for input from the terminal.
Note: If a command list in pause state was called by an NNT session,
the
P indicator is not displayed on the OST panel.