The SETUNDO macro command allows the UNDO function to be turned on or off and retrieves the current UNDO status.
Macro command syntax .-STORAGE-. >>-ISREDIT--SETUNDO--+---------+------------------------------->< +-KEEP----+ +-RECOVER-+ +-ON------+ '-OFF-----'
Assignment statement syntax >>-ISREDIT--(varname)-- = --SETUNDO----------------------------><
.-STORAGE-. >>-ISREDIT--SETUNDO-- = --+---------+-------------------------->< +-KEEP----+ +-RECOVER-+ +-ON------+ '-OFF-----'
The SETUNDO macro command enables undo processing. It does not perform the undo function itself. Valid operands are STORAGE, KEEP, RECOVER, ON, or OFF.
If SETUNDO is set on by a macro and was not on already, the UNDO function is enabled for all interactions started from the point SETUNDO was turned on.
ISREDIT SETUNDO OFF
ISREDIT SETUNDO = STORAGE
ISREDIT (SET) = SETUNDO