HP (Hewlett-Packard) 544530-001 Computer Accessories User Manual


 
NOTE: The names of the named parameters, ?sal and ?job, in the SELECT statement
are identical to the parameter names, sal and job, in the SET PARAM command.
For more information, see “Setting Parameters” (page 61).
SET PROMPT Command
The SET PROMPT command sets the prompt of the current session to a specified string and/or
to these session variables: %USER, %MODE, %SERVER, %SCHEMA, or %DATASOURCE. In
SQL mode, the default prompt is SQL>. In CS mode, the default prompt is CS#.
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
SET PROMPT Command 109