MPE/iX - CI Programming for Stability
July 18, 2008 HP World '01 15
Entry points (cont)
• two approaches for alternate entries:
• define a parm to be the entry point name, defaulting to the
main part of the code, for example: “main”
• the UDC/script invokes itself recursively in the main code, and
may use I/O redirection here too
• each entry point returns when done (via :RETURN command)
--------------------------- or ---------------------------------
• test HPSTDIN or HPINTERACTIVE variable to detect if
script/UDC has I/O redirected.
• if TRUE then assume UDC/script invoked itself.
• limited only to entry points used when $STDLIST or $STDIN are
redirected
• limited to a single alternate entry point, may not work well in
jobs