CANCEL—Cancel Edit Changes
The CANCEL primary command ends your edit session without saving any of the changes you have made.
Syntax
Description
CANCEL is especially useful if you have changed the wrong data, or if the changes themselves are incorrect. To cancel changes to a data set:
- On the command line, type:
CANCEL
- Press Enter. The edit session ends without saving your changes.
Note: If you issue SAVE and later issue
CANCEL, the changes you made before issuing SAVE are not canceled.
See the DATA_CHANGED, AUTOSAVE, and END commands for more information about saving data.
CANCEL does not cause automatic recording in the ISPF list data set, regardless of the setting of the autolist mode.
Examples
After editing the data, you decide
that you want the data set the way it was before editing. Enter this
command:
CANCEL
The edit session ends with
the data set in its original state.