MPE CI Programming for 7.5
July 22, 2008
Page 19
hp e3000
strategy
entry points
• simple convention for executing 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