Slide 18 of 80
Notes:
- Note: the HPSTDIN = “$STDLIST” test above could be replaced with: if HPINTERACTIVE then…
- This approach to alternate entry points works fine for its limited uses. It does not handle multiple alternate entries and requires I/O redirection for the single alternate entry.
- In a job you must use the HPSTDLIST test since HPINTERACTIVE is always FALSE.
- If the script itself is run with I/O redirected then both tests (HPSTDIN and HPINTERACTIVE will be inaccurate, and the generic approach must be used.