Chapter 4 Test [ MPE V to MPE XL Getting Started: Mentor's Guide ] MPE/iX 5.0 Documentation
MPE V to MPE XL Getting Started: Mentor's Guide
Chapter 4 Test
Name: _______________________________
1. If the files UDC1, UDC2, UDC3, and UDC4 were cataloged UDC files
in a UDC directory, how would you delete UDC2, without affecting
the other cataloged files?
a. And how would you add the UDC file UDC5 to the UDC directory
without affecting the other cataloged files?
2. For each item below, put X's in the appropriate column(s) to show
whether the item is characteristic of UDCs, command files, or
both.
----------------------------------------------------------------------------------------------
| | | |
| | UDC | Com. File |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| a. Must be cataloged. | | |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| b. Is invoked by file name. | | |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| c. Should be used for stable commands. | | |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| d. Can be invoked at logon via a UDC. | | |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| e. Invoked by a command header. | | |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| f. Can be easily PURGEd. | | |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| g. Can be separated in a file by one or more asterisks (*). | | |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| h. Is not invoked by a file name. | | |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| i. Can contain parameters. | | |
| | | |
----------------------------------------------------------------------------------------------
3. Study the following UDC file. Indicate how you would change this
file so that the UDC SM will call upon and execute the UDC LF. Do
not change the order in which they now appear.
LF
Listf
*****
SC
Showcatalog
*****
SM
Showme
*****
4. Create a single UDC called SHOW that does the following in the
order given:
a. Executes the SHOWME command without listing the SHOWME command
to the screen.
b. Executes the LISTF command without listing the LISTF command
to the screen.
c. Lists to the screen and executes the SHOWCATALOG command.
d. Executes another UDC called ST that is located before this one
in the directory.
5. a. Create a command file called S that will execute SHOWME and
SHOWTIME.
How would you execute this command file at the MPE prompt?
b. Given your command file S, create another command file, called
SHOW, that executes the SHOWME, SHOWTIME, and LISTF commands,
without putting the SHOWME and SHOWTIME commands in the file.
How would you execute this command file at the MPE prompt?
6. In each of the following cases, which of the two will execute when
entered at the MPE prompt?
a. The MPE command CALC or A user UDC named CALC
b. A program named CALC or The MPE CALC command
c. A PUB.SYS command file or Your own command file
named DOIT named DOIT
7. If you have a command file and a UDC that are both named DOIT,
which of the following command strings will execute the command
file?
____ a. DOIT
____ b. DOIT.GROUPNAME.ACCOUNTNAME
____ c. XEQ DOIT
____ d. RUN DOIT
MPE/iX 5.0 Documentation