Hi *SM-ers,

the following script starts Reclamation when there a no processes running.
If there is a process active it is rescheduled after 60 minutes.

         select * from processes
         if (rc_ok) goto reschedule
         UPDATE STGPOOL $1 RECLAIM=$2
         DELETE SCHEDULE R_RECLAIM_ON_$1 TYPE=A    <==
         exit
         reschedule:
         del sch r_reclaim_on_$1 type=a
         def sch r_reclaim_on_$1 t=a cmd="run -
             Ill_Start_Reclaim $1 $2" -
             active=yes startt=NOW+0:60 peru=o

Line 4 (marked with <==) returns error

ANR2706E CSCMDSCH(1157) Scheduler database query failed: 2.

because it tries to delete a running schedule (itself).
Is there a supported way to delete a running schedule?

Kind regards and greetings from Austria
Thomas Rupp
Vorarlberger Illwerke AG
Mail:   [EMAIL PROTECTED]
Tel:    +43/5574/601-2583





------------------------------------------------------------------------------------------
Dieses eMail wurde auf Viren geprueft.

Vorarlberger Illwerke AG
------------------------------------------------------------------------------------------

Reply via email to