SeeView Manual

SeeView Statements and Script Symbols
HP NonStop SeeView Manual526355-004
9-83
PROMPT
PROMPT
The PROMPT statement prompts the output file for input when SeeView runs in CI-
mode (server mode 3 or 4). The PROMPT statement allows command interpreter
SeeView scripts. See also CI statement.
string-exp
specifies the prompt string expression to be written to the output file when the
PROMPT statement executes. Any valid string expression is permitted. For
example: PROMPT #USERNAME & " " & #TIME & " > ", #Input;
string-var
specifies the string variable name that will receive PROMPT data input bytes.
error
specifies an optional integer variable name that is set to the PROMPT file-system
error. For example, an error 1 is an end-of-file error returned when control-Y is
pressed. Error 40 occurs when a timeout occurs, if timeout is specified. If no
error option is specified and if a prompt I/O error occurs, SeeView reports a
runtime error on the prompt statement.
timeout
specifies an optional PROMPT timeout in seconds. If no timeout is specified,
PROMPT waits until the user inputs data and presses enter. While the PROMPT
waits for input, SeeView continues processing of interprocess I/O and $RECEIVE
messages. When timeout is equal to -1, the default, the prompt waits indefinitely
for user input. When timeout is greater than zero, PROMPT statements can
timeout, allowing scripts to timeout prompts.
Considerations
SeeView runs in three different modes:
Block mode - server mode 0
Server mode - server mode 1 or 2
CI mode - server mode 3 or 4
Examples
Example #1
RUN SEEVIEW CI $data.test.prompt
PROMPT [ string-exp ] ,string-var [ ,error ] [ ,timeout ]