The ASK command prompts the user for a new value for the parameter.
ASK ["prompt"] parm [ONERROR statement] "prompt" - optional prompt string to replace default prompt parm - parameter file entry name ONERROR - error condition handler
For numeric parameters the value provided by the user is parsed as a comma separated series of expressions. Each of the expressions is evaluated before being assigned to the corresponding entry in the numeric parameter. If there is an error evaluating any of the expressions, and an ONERROR statement is available it will be invoked. ONERROR statements are never invoked for character parameters.
Example:
The following statement asks the user for a value to assign to the character parameter FILE and overrides the standard FILE parameter prompt.
ask "PCIDSK Database To Create:" file
© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.