Difference between revisions of "INQUIRE"

From VSI OpenVMS Wiki
Jump to: navigation, search
(Created page with "'''INQUIRE''' is a DCL command that reads a value from SYS$COMMAND (usually the terminal ininteractive mode or the next line in the main command procedure)...")
 
m (add Category:DCL Commands)
 
Line 3: Line 3:
 
  INQUIRE  symbol-name [prompt-string]
 
  INQUIRE  symbol-name [prompt-string]
 
==Symbol Name==
 
==Symbol Name==
The symbol that will hold the value from SYS$COMMAND.
+
The [[Symbol|symbol]] that will hold the value from [[SYS$COMMAND]].
 
==Prompt String==
 
==Prompt String==
 
The string that will appear on the screen to prompt the user for input. If nothing is specified, the symbol name will be displayed. Unless /NOPUNCTUATION is added, ": " will be added to the prompt string or the symbol name displayed as the prompt string.
 
The string that will appear on the screen to prompt the user for input. If nothing is specified, the symbol name will be displayed. Unless /NOPUNCTUATION is added, ": " will be added to the prompt string or the symbol name displayed as the prompt string.
Line 10: Line 10:
 
* /LOCAL specifies that the symbol should be placed in the local symbol table.
 
* /LOCAL specifies that the symbol should be placed in the local symbol table.
 
* /PUNCTUATION specifies that ": " should be added after the prompt string (default). /NOPUNCTUATION disables that behavior.
 
* /PUNCTUATION specifies that ": " should be added after the prompt string (default). /NOPUNCTUATION disables that behavior.
[[Category:DCL Commands]
+
[[Category:DCL Commands]]

Latest revision as of 02:22, 26 November 2021

INQUIRE is a DCL command that reads a value from SYS$COMMAND (usually the terminal ininteractive mode or the next line in the main command procedure) and assigns it to a symbol.

Syntax

INQUIRE  symbol-name [prompt-string]

Symbol Name

The symbol that will hold the value from SYS$COMMAND.

Prompt String

The string that will appear on the screen to prompt the user for input. If nothing is specified, the symbol name will be displayed. Unless /NOPUNCTUATION is added, ": " will be added to the prompt string or the symbol name displayed as the prompt string.

Qualifiers

  • /GLOBAL specifies that the symbol should be placed in the global symbol table.
  • /LOCAL specifies that the symbol should be placed in the local symbol table.
  • /PUNCTUATION specifies that ": " should be added after the prompt string (default). /NOPUNCTUATION disables that behavior.