CANCEL primary command

The CANCEL primary command ends the current FM/Db2 editor session without saving any changes.

In an editor session, the CANCEL primary command ends the current FM/Db2 editor session and any dependent related sessions. In Edit only, if you have made changes to your data, you are asked to confirm that you want to cancel your Edit session. Cancellation of an Edit session causes any uncommitted changes to the data (in the current or in a dependent related session) to be lost.

Note that FM/Db2 may issue Db2® commit points during an Edit session, depending on the current setting of the Enter Key Processing and Commit Options options (see Editor Options (6 of 8) panel). If commit points have been issued, CANCEL will only discard changes made since the last commit point.

If you have selected the Edit Commit Option Whenever Enter is pressed, the Db2® table is updated whenever you press Enter after having made a change. CANCEL in this situation does not reverse any changes made before the last time you pressed Enter.

QUIT is a synonym for CANCEL.

Syntax


1 CANCEL

Availability

Available on most FM/Db2 panels

Related tasks