z/OS ISPF Edit and Edit Macros
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


CANCEL—Cancel Edit Changes

z/OS ISPF Edit and Edit Macros
SC19-3621-00

The CANCEL macro command ends your edit session without saving any of the changes you have made.

Syntax

Read syntax diagramSkip visual syntax diagram
Macro command syntax

>>-ISREDIT--CANCEL---------------------------------------------><

Description

CANCEL is especially useful if you have changed the wrong data, or if the changes themselves are incorrect. See the DATA_CHANGED, AUTOSAVE, and END commands for more information about saving data.

Note:
  1. If you issue SAVE and later issue CANCEL, the changes you made before issuing SAVE are not canceled.
  2. When CANCEL is entered in the macro field in the edit prompt panel (ISRUEDIT), the macro name is not saved in the profile for use in future sessions. This is to avoid having the editor appear to do nothing when it is invoked from the data set list.

CANCEL does not cause automatic recording in the ISPF list data set, regardless of the setting of the autolist mode.

Return codes

0
Normal completion
20
Severe error

Examples

To cancel the current edit session:
ISREDIT CANCEL

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014