MPE CI Programming for 7.5
July 22, 2008
Page 20
hp e3000
strategy
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 (“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