mainframeispf

IBM z/OS TSO ISPF Editor Cancel command - how to add "Are You Sure?" query dialog


Using the ISPF Editor on z/OS (MVS) it happened several times to me that I entered then "can" (cancel) line command when I actually meant "reset". This cancelled my edit session so I lost my changes.

I would like to add a small dialog window asking the safety question "Are you Sure?" to the built-in can(cel) command.

How can that be achieved?

As far as i know, can/cancel will not search sysexec or the like, so I wouldn't know how to bind / override the cancel command with my own rexx exec.


Solution

  • In an Edit session, use the EDSET line command, scroll down and select the _ Confirm Cancel/Move/Replace option.