MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

UNDO option

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
Phaninder
Beginner


Joined: 06 Jul 2005
Posts: 27
Topics: 11

PostPosted: Fri Dec 23, 2005 6:29 am    Post subject: UNDO option Reply with quote

Hi All,
The UNDO command option at my side Says invalid command,
Do i need to change ISPF panel settings for that, if pos pls help me.


Thanks
----------
phani
Back to top
View user's profile Send private message
Phantom
Data Mgmt Moderator
Data Mgmt Moderator


Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet

PostPosted: Fri Dec 23, 2005 6:48 am    Post subject: Reply with quote

Phaninder,

UNDO option works only when RECOVERY is set to ON. Try issuing REC ON or RECOVERY ON, make some changes to the code and then try UNDOing these changes.

Thanks,
Phantom
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Fri Dec 23, 2005 7:48 am    Post subject: Reply with quote

Phaninder,

Here is some more info about UNDO command

Code:

UNDO--Reverse Last Edit Interaction                                     
                                                                       
The UNDO primary command allows you to remove the data modifications of a
previous interaction.                                                   
                                                                       
Note:  The SETUNDO command is ignored if UNDO from storage is not enabled
       by the installer or person who maintains the ISPF product. For   
       information on enabling UNDO from storage, see ISPF Planning and
       Customizing.                                                     
                                                                       
Syntax                                                                 
                                                                       
>>--UNDO----------------------------------------------------------------
                                                                       
Description                                                             
                                                                       
Each time you enter UNDO, it reverses edit interactions, one at a time, in
the order in which they have been entered. To use UNDO, you must have   
either RECOVERY on or SETUNDO on. You can undo only those changes made 
after RECOVERY or SETUNDO was turned on. SETUNDO and RECOVERY can be   
specified in your edit profile. You can also use the edit macro command
ISREDIT SETUNDO to turn UNDO processing on and off. See "SETUNDO--Set UNDO
Mode" in item SETUNDO for more information.                             
                                                                       
RECOVERY is now optional and is not required to run UNDO. Performance   
improves if the editor is run with SETUNDO STORAGE and RECOVERY OFF. In
this mode, non-data changes, such as setting line labels, adding note   
lines, and inserting blank lines, can be undone by UNDO even if no data
changes have been made. With RECOVERY ON, only changes made after (and 
including) the first change to edit data can be undone.                 
                                                                       
Note:  Changes made by initial edit macros cannot be undone.           
                                                                       
See "Understanding Differences in SETUNDO Processing" in item UNDOING for
more information on the differences between SETUNDO RECOVER and SETUNDO
STORAGE processing.                                                     
                                                                       
Each time you press Enter, an interaction occurs between you and the PDF
component. If you combine line and primary commands in one entry, the PDF
component considers this one interaction. Therefore, UNDO would cause all
of the commands to be reversed. The PDF component also considers running
edit macros that contain a combination of macro commands and assignment
statements, while entering a combination of edit line and primary commands
at the same time, as one interaction.                                   
                                                                       
Profile changes, such as HEX ON, LEVEL, and CAPS, cannot be undone     
separately. Profile changes are associated with the data change that came
before them, and can be undone only when preceded by a data change. The
data change and the profile change are undone at the same time. For     
example, if you make a change to the data, change the version number, set
caps off, turn hex on, and then enter UNDO, the version number, caps   
setting, and hex mode all revert to the way they existed before the data
change. The data change is also undone.                                 
                                                                       
Note:  UNDO is not accepted if any line commands or data changes are also
       specified since it would be unclear what is to be undone.       
                                                                       
To undo the last changes:                                               
                                                                       
1.  Type on the command line:                                           
                                                                       
      UNDO                                                             
                                                                       
2.  Press Enter.                                                       
                                                                       
Note:  UNDO is reset by SAVE. Once you save your data for the current edit
       session, you can no longer recover any interactions made before the
       data was saved.                                                 
                                                                       
Failures in recovery processing due to I/O errors no longer terminate the
UNDO function if SETUNDO STORAGE is active. When UNDO is processed, the
editor scrolls the data all the way to the left.                       


Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Phaninder
Beginner


Joined: 06 Jul 2005
Posts: 27
Topics: 11

PostPosted: Fri Dec 23, 2005 9:41 am    Post subject: Reply with quote

Phantom/Kolusu, Thanks a lot for the instant response.
Kolusu,
This sentence made the difference "For
example, if you make a change to the data, change the version number, set
caps off, turn hex on, and then enter UNDO, the version number, caps
setting, and hex mode all revert to the way they existed before the data
change. The data change is also undone."

Lastly, I would be greatful , if you can provide me a link on the ISREDIT option.

That was really great descripition ..and Help ful ....Thanks ...A LOT Smile
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Fri Dec 23, 2005 1:04 pm    Post subject: Reply with quote

Phaninder,

ISREDIT is nothing but the environment in which ISPF/PDF EDIT commands execute.

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Fri Dec 23, 2005 1:22 pm    Post subject: Reply with quote

If you don't want to incur the overhead of RECOVERY, and if your site has enabled it, use SETUNDO ON. Unfortunately, the default is for sites to have that option disabled, but it is much faster and less resource intensive than RECOVERY.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group