Just one of the scripts we are using: /* -----------------------------------------*/ /* Script Name: BKUP_STG_TAPE_COPY */ /* Description: Backup a storage pool, after*/ /* migration is finished. If */ /* migration is still running */ /* try again in 20 minutes */ /* Parameter 1: DISKPOOL name (in CAPS) */ /* Parameter 2: pri. storage pool */ /* Parameter 3: copy storage pool */ /* Parameter 4: max process for stg backup */ /* Example1: run bkup_stg_db DISKPOOL ST */ /* ST2 3 */ /* -----------------------------------------*/ select process, status from processes where process='Migration' and status like '%$1,%' if (rc_ok) goto reschedule update stg $1 hi=90 lo=70 ba stg $2 $3 maxpr=$4 wait=yes del sch retrybkup_$1 type=a exit reschedule: del sch retrybkup_$1 type=a def sch retrybkup_$1 t=a cmd="run bkup_stg_tape_copy $1 $2 $3 $4" active=yes startt=NOW+0:20 peru=o
-----Oorspronkelijk bericht----- Van: Loon, E.J. van - SPLXM [mailto:[EMAIL PROTECTED] Verzonden: woensdag 26 februari 2003 15:17 Aan: [EMAIL PROTECTED] Onderwerp: Select for daily maintenance Hi *SM-ers! I'm currently using the Q PROC command in my daily maintenance scripts to determine if the previous task has completed or not. I capture the returncode and if it's not equal to 0 then no task are running and thus the next script can be executed. I'm trying to find a way to make this more specific. For instance, I would like to see a returncode not equal to zero if reclamation has finished, I don't care if any other process is still running. I think it should be possible to do this by using a select statement, but I'm not much of an SQL wizard. Could somebody help me out here? Thank you very much in advance! Kindest regards, Eric van Loon KLM Royal Dutch Airlines ********************************************************************** For information, services and offers, please visit our web site: http://www.klm.com. This e-mail and any attachment may contain confidential and privileged material intended for the addressee only. If you are not the addressee, you are notified that no part of the e-mail or any attachment may be disclosed, copied or distributed, and that any other action related to this e-mail or attachment is strictly prohibited, and may be unlawful. If you have received this e-mail by error, please notify the sender immediately by return e-mail, and delete this message. Koninklijke Luchtvaart Maatschappij NV (KLM), its subsidiaries and/or its employees shall not be liable for the incorrect or incomplete transmission of this e-mail or any attachments, nor responsible for any delay in receipt. **********************************************************************