Neoview Script Guide (R2.2)
Syntax
SET PROMPT [string] [%USER] [%MODE] [%SERVER]
[%SCHEMA] [%DATASOURCE]
string
is a string value to be displayed as the prompt. The string may contain any characters. Spaces
are allowed if you enclose the string in double quotes. If you do not enclose the string in
double quotes, the prompt is displayed in uppercase.
%USER
displays the session user name as the prompt.
%MODE
displays the operating mode of the session as the prompt.
%SERVER
displays the session host name and port number as the prompt.
%SCHEMA
displays the session schema as the prompt.
%DATASOURCE
displays the session data source as the prompt.
Considerations
• In the Neoview Script interface, you must enter the command on one line. The command
does not require an SQL terminator.
• Unlike SET SQLPROMPT, you can execute this command in other modes.
• To reset the default prompt, enter this command:
SET PROMPT
Examples
• This SET PROMPT command sets the SQL prompt to ENTER>:
SQL>set prompt Enter>
ENTER>
• This SET PROMPT command sets the CS prompt to #:
ENTER>mode cs
CS#set prompt #
#
• To reset the CS prompt to the default, enter this SET PROMPT command:
#set prompt
CS#
• To reset the SQL prompt to the default, enter this SET PROMPT command:
CS#mode sql
ENTER>set prompt
SQL>
• This command displays the session user name for the prompt:
SQL>set prompt %user>
dba1>
SET PROMPT Command 115