Exercise 3.4: Requesting undo and redo operations

Before you begin, you must complete Exercise 3.3: Entering SEU commands.

The editor records each set of changes you make to a file in the Editor window. The number of changes made since the last file save is displayed on the status line. If you want to undo a set of changes made to a file you use the Undo operation. You can also cancel the effects of an Undo operation by using the Redo operation.

Now you are going to undo some of the changes you just made to the file. Then you will cancel the Undo operation by using the Redo operation. Finally you will reload the source so that it is back to its original content.

To undo and redo edit changes:

  1. Click Edit > Undo from the workbench menu.

    Notice that the 5 new lines disappear.

  2. Press Ctrl+Z to undo the last change.

    Notice that the deleted lines reappear.

  3. Click Edit > Redo from the workbench menu.

    Notice that the lines are deleted again.

    At this point you will reload the source from the iSeries to make sure that it is back in its original form.

  4. Click File > Close on the workbench menu.

    Tip: You can also click the X on the PAYROLL tab.
    Click X to close the Payroll source

    A Save Resource dialog opens asking if you want to save the latest changes.
    Confirmation window payroll

  5. Click No.
  6. Go back to the workbench to the Remote Systems view and open the PAYROLL member in the QRPGLESRC file.

You have learned how to undo and redo changes that you made to a file and now you are ready to begin Exercise 3.5: Invoking language-sensitive help.