REDO Edit macro to undo the undo action



TSO Programming, ISPF, SDF, SDSF and PDF, FTP, TCP/IP Concepts, SNA & SNA/IP etc...

REDO Edit macro to undo the undo action

Postby steinef » Wed Sep 18, 2013 8:43 pm

Hi all

I am trying to write an edit macro which allows users to perform a redo action.

Lets say I used the undo command twice instead of just once and I want to redo the command which was just undone I'd like to have a macro which is able to perform that redo action.
Unfortunately neither the undo command nor the retrieve command are valid ISREDIT commands and I don't have any idea where to begin right now

So thanks a million in advance for any constructive ideas
"Freedom is not worth having if it does not include the freedom to make mistakes"

Gandhi
steinef
 
Posts: 9
Joined: Mon Oct 01, 2012 9:31 pm
Location: Muenster, Germany
Has thanked: 0 time
Been thanked: 0 time

Re: REDO Edit macro to undo the undo action

Postby enrico-sorichetti » Wed Sep 18, 2013 9:46 pm

So thanks a million in advance for any constructive ideas


since UNDO has the prerequisite of RECOVERY ON You might try to process Yourself the dataset used for recovery,
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 3006
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 165 times

Re: REDO Edit macro to undo the undo action

Postby Pedro » Thu Sep 19, 2013 2:06 am

I think you need to intercept the undo and save the current file somewhere. And then perform the actual undo.

On REDO, just issue compare command against the saved version. The user can issue MD commands to incorporate the changes from the saved file.
Pedro Vera
User avatar
Pedro
 
Posts: 686
Joined: Thu Jul 31, 2008 9:59 pm
Location: Silicon Valley
Has thanked: 0 time
Been thanked: 53 times


Return to TSO & ISPF

 


  • Related topics
    Replies
    Views
    Last post