Hi,
Can anyone assist me with the use of the UNDO command in an edit macro?
I am trying to do this in REXX
Address ISREDIT
"macro"
"setundo on"
"change all a b"
"undo"
"change all a c"
The last undo command will not work - it comes up with an error stating that the Command is unrecognised. I've tried the other SETUNDO settings and the RECOVERY command, but UNDO will never work as a macro command. I am still able to use UNDO on the command line however.
The following also works, but the use of the UNDO would make it much neater.
Address ISREDIT
"macro"
"cut"
"change all a b"
"delete all"
"paste"
"change all a c"
Has anyone managed to get UNDO working within a macro?
Thanks,
Steve