Lesson 4 Using UDC Options [ Using the 900 Series HP 3000: Advanced Skills Module 7: Solutions Guide ] MPE/iX 5.0 Documentation
Using the 900 Series HP 3000: Advanced Skills Module 7: Solutions Guide
Lesson 4 Using UDC Options
Exercise 5-3: RECURSION Option
In order to allow UDC SO to call upon and execute UDC ST (without
changing the order of the UDCs in the file), you would have to use OPTION
RECURSION as follows:
ST
SHOWTIME
***
SM
SHOWME
***
SO
OPTION RECURSION
SHOWOUT
ST
***
********** End of Exercise 5-3 **********
Q 5-5 To make the UDC not executable from within a
program, you need to add the NOPROGRAM option:
LF
OPTION NOPROGRAM
LISTFILE
***
Q 5-6 a. SHOWTIME is displayed. The LISTFILE command
is not displayed because it is preceded by
OPTION NOLIST.
b. No MPE/iX commands are displayed because the
OPTION NOLIST is still in effect.
c. No MPE/iX commands are displayed because the
OPTION NOLIST is still in effect.
Exercise 5-4: UDC Options
1. The SLS UDC should look like this:
SLS
SHOWTIME
LISTFILE
OPTION LIST
SHOWME
***
2. The problem with the following UDC is that OPTION NOHELP can only
appear directly after the header.
LISTER
OPTION NOLIST
FILE OUT;DEV=LP
PRINT MYFILE, OUT=*OUT
OPTION LIST
*OPTION NOHELP
LISTFILE MYFILE,2
3. Default values for the options are marked with an asterisk (*):
LIST NOLIST*
HELP* NOHELP
RECURSION NORECURSION*
PROGRAM* NOPROGRAM
************ End of Exercise 5-4 *****************
MPE/iX 5.0 Documentation