Does anyone have a bit of script code that evaluates the "current hour" when
the script is running?
Something like
IF SELECT HOUR(CURRENT_TIMESTAMP) FROM LOG > 16 GOTO ...
I've poked around ADSM.QuickFacts and see some potential hints. SELECT
HOUR(CURRENT_TIMESTAMP) FROM LOG will return the current hour, but I can't get
an if test to evaluate that hour saved as a script.
My goal: A script runs and it schedules a secondary script to run at a future
time.
When the secondary script runs, it tests for various conditions (active node
sessions, reclamation, etc.) and MIGHT reschedule itself for "STARTT=NOW+00:15".
But, that secondary script will ideally also test for the time that it started.
If the start time is past a given time of day (say 16:00), I want the script
to skip its intended purpose and delete the schedule that fired it off.
Thanks.
------------------------------------------------------------
Harold Vandeventer
Systems Programmer
State of Kansas - Office of Information Technology Services
STE 751-S
910 SW Jackson
(785) 296-0631
[Confidentiality notice:]
***********************************************************************
This e-mail message, including attachments, if any, is intended for the
person or entity to which it is addressed and may contain confidential
or privileged information. Any unauthorized review, use, or disclosure
is prohibited. If you are not the intended recipient, please contact
the sender and destroy the original message, including all copies,
Thank you.
***********************************************************************