PROMPT programming steps
To use the PROMPT statement, you must:
- 
Declare a program variable with the
DEFINEstatement. - 
Set the 
int_flagvariable toFALSE. - 
Define the 
PROMPTdialog, 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.