MPE/iX - CI Programming for Stability

July 18, 2008 HP World '01 14
Entry points
simple convention for executing the same UDC/script starting
in different “sections” or subroutines
a UDC/script invokes itself recursively passing in the name of an
entry (subroutine) to execute
the script detects that it should execute an alternate entry and
skips all the code not relevant to that entry.
most useful when combined with I/O redirection, but can provide
the appearance of generic subroutines
benefits are: fewer script files to maintain, slight performance
gain since MPE opens an already opened file faster, can use
variables already defined in script
UDCs need OPTION RECURSION to use multiple entry points