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. PRINT FILE=LUCY
or
PRINT LUCY
2. PRINT FILE=LUCY;START=2;END=9
or
PRINT LUCY,,2,9
3. PRINT FILE=LUCY;START=10;END=10
or
PRINT LUCY,,10,10
or
PRINT FILE=LUCY;START=-1 if the file is only 10 lines long.
4. PRINT FILE=LUCY;START=5;END=5
or
PRINT LUCY,,5,5
5. PRINT FILE=LUCY;OUT=*PRINTER
or
PRINT LUCY,*PRINTER
6. PRINT FILE=LUCY;END=9;START=6;OUT=*PRINTER
or
PRINT LUCY,*PRINTER,6,9
(Note: in the first solution, the order of the parameters is
unimportant.)
7. PRINT FILE=LUCY;START=-3
The minus (-) specified before the number 3 caused only the last
three lines to print (on the screen by default).
8. (example of a correct answer)
CHGROUP NEWGROUP
CHGROUP
9. COPY FROM=LUCY;TO=RICKY
or
COPY LUCY,RICKY
10. a. COPY FROM=RICKY;TO=LUCY
or
COPY RICKY,LUCY
PURGE OLD? NO
NO COPY WAS DONE (CIERR 9113)
b. COPY FROM=ricky;to=lucy
or
COPY ricky,lucy
PURGE OLD? yes
:
What happened? The file RICKY overwrote the file LUCY.
c. PRINT file=lucy or PRINT lucy
11. COPY FROM=ricky;TO=lucy;no
or
COPY ricky,lucy;no
NO COPY WAS DONE (CIERR 9113)
12. COPY FROM=RICKY;TO=LUCY;YES
or
COPY RICKY,LUCY;YES
13. PRINT FILE=LUCY
or
PRINT LUCY
14. NEWGROUP LABS
COPY FROM=LUCY.HOME;TO=LUCY.LABS
CHGROUP LABS
PRINT FILE=LUCY or
NEWGROUP LABS
COPY LUCY,LUCY.LABS
CHGROUP LABS
PRINT LUCY
15. Example:
COPY FROM=RICARDO;TO=RICARDO.HOME
CHGROUP
PRINT FILE=RICARDO
or
COPY RICARDO,RICARDO.HOME
CHGROUP
PRINT RICARDO
16. CHGROUP LABS
CHGROUP
MPE/iX 5.0 Documentation