Joined: 07 Jan 2003 Posts: 1056 Topics: 91 Location: The Blue Planet
Posted: Fri Dec 23, 2005 6:48 am Post subject:
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.
Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
Posted: Fri Dec 23, 2005 7:48 am Post subject:
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.
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.
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
Joined: 03 Jan 2003 Posts: 1014 Topics: 13 Location: Atlantis
Posted: Fri Dec 23, 2005 1:22 pm Post subject:
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.
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