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
statement, 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.