|
|
Using HP 3000 MPE/iX: Fundamental Skills Tutorial: HP 3000 MPE/iX Computer Systems > Chapter 2 Communicating with Your ComputerLesson 4 Mistakes and Corrections |
|
Lesson 4 presents error messages and correcting command errors.
Are you still logged on? If you are not, log on again (HELLO your logon identity Return). What if you make a mistake while entering a command? Make a mistake. Enter:
Your screen looks like this:
This mistake is just a typing error. The computer does not recognize the command, so it displays an error message that shows the following:
There are various ways of correcting errors. Choose the method that is most convenient. You may choose to reenter the command correctly. Enter:
to send the correct command to the computer. If you enter the command correctly, it executes, and you see the results. Another way to correct an error is to use the backspace key ← to go back to the character where you made the first mistake and reenter the remainder of the command.
Type SHOWHOB again. DO NOT PRESS RETURN YET.
These two methods are best used for short commands. Notice that you have to reenter the command from the first mistake all the way to the end. As you become a more experienced MPE/iX user, reentering lengthy commands using these methods could become tedious. The REDO command allows you to edit commands and then reexecute them. When the command line becomes long and complex — and some do — REDO is the easier solution. Enter:
You should see this on the screen:
Now enter:
You should see this on the screen:
Read ahead before doing anything more at your terminal. REDOReturn retrieves the most recent command entered on the computer and gives it back to you for editing. The REDO command allows you to make the editing changes on the line below the retrieved command. Notice that there is no system prompt (:), just the cursor. Four simple and useful subcommands of REDO are DELETE, INSERT, REPLACE, and UNDO:
These subcommands can be entered in uppercase or lowercase letters. Use the spacebar and backspace (←) to place the cursor exactly under the place where you want to start your corrections. Correcting with REDO follows a pattern of steps:
Now correct your last command entered, COWEM First, use the subcommand R to replace the C with an S. You must place the subcommand letter R directly under the letter to be changed. For this first correction, be sure that the cursor is already under C. Enter:
Your screen should look like this:
Each time you make a correction, the computer shows you the command with the new edits that you made and waits for more edits.
Insert H between S and O this way:
Now your screen should show the following:
Now replace EM with ME this way:
At this point your screen should show:
The word SHOWME should be on the screen, properly spelled. Now that the command is correct, press the return key again:
This concludes the editing and sends the command to the computer for execution. You should now see the SHOWME display. As mentioned earlier, the U subcommand lets you cancel or undo, the effects of a D, R, or I subcommand. To see how this works, execute the SHOWTIME command and make the following corrections using the REDO command. Replace TIME with JOB this way:
Next, replace JOB with ME this way:
Delete SHOW as follows:
Now, enter:
Notice that the previous edit, deleting SHOW, has been undone and SHOWME reappears on the screen. At this point, you have one of three choices:
Perform the third choice now by entering:
SHOWTIME returns to the screen canceling all of the previous REDO subcommands. Press Return to execute SHOWTIME. Your screen should show something like this:
|
|