SET PROMPT
SET PROMPT is a DCL command that replaces the default DCL prompt ($ ) with the specified string. For information on setting prefix control strings for verified command lines, see SET PREFIX.
Contents
Syntax
SET PROMPT[=string]
String
Specifies the new prompt string. The following rules apply:
- All valid ASCII characters can be used.
- No more than 64 characters are allowed.
- To include spaces or lowercase letters, enclose the string in quotation marks (" "). Otherwise, letters are converted automatically to uppercase; leading and trailing spaces are removed.
If you do not specify the string parameter with the SET PROMPT command, the default DCL prompt ($ ) is restored.
Qualifiers
/CARRIAGE_CONTROL inserts carriage return and line feed characters before the prompt string. Type the qualifier after the string parameter.
Examples
$ SET PROMPT="ALPHA> " ALPHA>
In the example above, the prompt is changed to "ALPHA> "
$ SET PROMPT="''f$environment("DEFAULT")'> "
In the example above, the prompt is changed to the default directory.