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