Answers to Exercises [ MPE V to MPE XL: Getting Started ] MPE/iX 5.0 Documentation
MPE V to MPE XL: Getting Started
Answers to Exercises
1. Selections b, e, g, and i are all acceptable names.
2. SETVAR pi,'3.14159', and SETVAR bond,'007'.
3. SHOWVAR pi,bond or just SHOWVAR
4. DELETEVAR pi, then SHOWVAR pi
5. SHOWVAR, DELETEVAR @, and SHOWVAR
6. HP
7. a. F b. T c. F
8. HPUSERCAPF
Enter SHOWVAR HPUSERCAPF
Note: The new LISTUSER command also displays your user
capabilities.
9. SETVAR HPPROMPT,'Yes?'
The new prompt appears on your screen as soon as you enter the
command string.
10. The prompt returns to the system-defined prompt each time you
initiate a new session.
11. SETVAR HPTYPEAHEAD,TRUE
SHOWVAR HPTYPEAHEAD
12. Example (file called WELCOME):
1 ECHO Welcome to MPE XL.
2 ECHO
3 ECHO Have a nice day.
.
.
.
:WELCOME
Welcome to MPE XL.
Have a nice day.
:
13. The system displays the first line of the command file, plus the
error message: THE INPUT TIMED READ HAS EXPIRED. (CIWARN 9003),
and reverts to the previous prompt.
14. File PR:
___________________________________________________________________
| |
| |
| 1 INPUT HPPROMPT |
| . |
| . |
| . |
| :pr CR (The system appears to do nothing. |
| _ It waits for you to enter something. |
| Whatever you enter is assigned to |
| HPPROMPT and becomes your new system |
| prompt.) |
| @ CR (You enter @) |
| @ (@ is now your system prompt.) |
| @pr CR (You reexecute PR.) |
| : CR (You rename your prompt "":"".) |
| : (Your prompt becomes "":"" again.) |
| |
___________________________________________________________________
15. Example (file named YOURNAME):
1 INPUT NAME,"What is your name? "
2 ECHO
3 ECHO "!name" is a very nice name.
.
.
.
:YOURNAME CR
What is your name? Fred CR
"Fred" is a very nice name.
:
16. Example (file named CAPS)
1 ECHO My current capabilities are:
2 ECHO !HPUSERCAPF
.
.
.
:caps CR
My current user capabilities are:
ND, SF, BA, IA
17. Put .!!HPACCOUNT between HPGROUP and /, as follows:
SETVAR HPPROMPT, "!!HPGROUP.!!HPACCOUNT/!!HPCMDNUM:"
18. PUB.SALES/16:
19. HPPATH would = groupname,MIS,PUB,PUB.SYS instead of
!HPGROUP,MIS,PUB,PUB.SYS
20. Enter ECHO !HPPATH
21. MPE XL would permit you to add the group to your search path.
However, as someone other than the creator of the files in that
group, and without READ access, you would be unable to execute any
command files or programs from that group.
MPE/iX 5.0 Documentation