PROMPT programming steps

To use the PROMPT statement, you must:

  1. Declare a program variable with the DEFINE statement.
  2. Set the INT_FLAG variable to FALSE.
  3. Define the PROMPT dialog, with dialog control blocks to control the instruction. Use the FOR CHAR clause if a single character is to be entered.
  4. After executing the PROMPT, check the INT_FLAG variable to determine whether the input was validated or canceled by the user.