HP 3000 Manuals

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.   Example:

     Command File:  MYFILE1

             SHOWME
             SHOWTIME

          :MYFILE1
          ...

2.   Example:

     Command File:  MYFILE2

             LISTF

          :MYFILE2
          ...

3.   Command File:  MYFILE3

             MYFILE1
             MYFILE2

          :MYFILE3
          ...

4.   False.  However, if a command header were added, it could be
     cataloged as a UDC.

5.   True

6. 

	       Click here to view figure.
7.   a.  User UDC ST

     b.  Account UDC LF

     c.  User UDC RE

8.   A UDC named LISTF

9.   Yes, it would.

10.  a.  LISTF system command.

     b.  The UDC.

     c.  The MPE XL command PRINT.

     d.  The program file in your current group.

11.  /a
     1   showtime
     2   //
     /k listredo
     ...

     :XEQ LISTREDO

     MON, FEB 8, 1988, 4:27 PM

12.  SETCATALOG LONDON;DELETE

13.  SETCATALOG MOSCOW, KENYA, BRASILIA;APPEND

14   SETCATALOG NEWYORK, BOSTON, BOMBAY, ZURICH

15. 

          SO
          OPTION RECURSION
          SHOWOUT
          ST
          **

16. 

          LF
          OPTION NOPROGRAM
          LISTF
          **

17.  The HPCICOMMAND intrinsic allows command files and UDCs to be
     executed from within a program, as long as the user command has not
     specified OPTION NOPROGRAM. If the program has used the COMMAND
     intrinsic, however, user commands cannot be executed while the user
     is running the program, even if they have specified OPTION PROGRAM.

18. 

          SHOW
          OPTION NOLIST
          SHOWTIME
          LISTF
          OPTION LIST
          SHOWME
          **

19.  The use of the OPTION command within the body of a user command is
     limited to RECURSION/ NORECURSION and LIST/NOLIST. All other options
     may only be specified in the OPTION header(s).  Therefore, NOHELP
     should not have been specified in the body of the command file.



MPE/iX 5.0 Documentation