EXIT DIALOG instruction

The EXIT DIALOG statement terminates a procedural DIALOG block without any further control block execution.
Note: When used in a declarative DIALOG block, the EXIT DIALOG instruction does only make sense when the declarative dialog block is included in a procedural dialog block with the SUBDIALOG clause.

Program flow resumes at the Instruction following the END DIALOG keywords. Blocks such as AFTER DIALOG will not be executed.

   ON ACTION quit 
       EXIT DIALOG

When leaving the DIALOG instruction, all form items used by the dialog will be disabled until another interactive statement takes control.

The EXIT DIALOG instruction leaves the DIALOG block immediately, while CANCEL DIALOG makes some additional tasks.