Just a note that tracing showed an endless WAKEUP loop once VMUTIL SCHEDULE
had no more events to wait for that day..  which lasted until midnight.   So
- all the suggestions about putting in a SLEEP to get you past midnight were
relevant.   Adding a CP SLEEP 1 MIN  at 23:59:30  cured the problem.

Thanks for all the input and suggestions!

Scott Rohling

p.s.  When calling WAKEUP with a FILE (e.g.  FILE(VMUTIL SCHEDULE A6) ) --
WAKEUP exits with RC0 if there is nothing in the file for that day to
'wakeup' for.   This is what causes the loop --  unless something checks for
RC0 and does an appropriate SLEEP (or calls WAKEUP without the FILE option),
WAKEUP will continue to be called and exit with RC0 endlessly.  The easiest
fix is to put a SLEEP just before midnight in the FILE that is being used...

Reply via email to