PROMPT programming steps
To use the PROMPT statement, you must:
- 
Declare a program variable with the
DEFINEstatement. - 
Set the 
INT_FLAGvariable toFALSE. - Define the 
PROMPTstatement, with dialog control blocks to control the instruction. Use theFOR CHARclause if a single character is to be entered. - 
After executing the 
PROMPT, check theINT_FLAGvariable to determine whether the input was validated or canceled by the user.