ADSM-L

controlling command execution in an scritp

2015-10-04 17:28:41
Subject: controlling command execution in an scritp
From: Maria Paz Gimeno [mailto:mpgimeno AT IBERCOM DOT ES]
To: ADSM-L AT VM.MARIST DOT EDU
I have this script defined:

MOVE MEDIA STGPOOL=COPIABACKUP WHERESTATE=EMPTY WHERESTATUS=OFFLINE
CHECKIN LIBVOLUME SILO * SEARCH=YES CHECKLABEL=NO STATUS=SCRATCH

The library is a 3494 and the volumes that the move media will recall are
already inserted in the library, we do first a select to find the volumes
that will fit the move media and insert them in the 3494.
The problem we are having at times is that, as there is no wait parameter in
the move media, both commands are started concurrently, and the checkin
finishs before the move media have changed all tapes to scratch, and for
those tapes the checkin fails saying that scratch is not valid status for
the volume.
Do you know how can I separate the execution fo both commands?
I have tried a GOTO but it is not allowed to go back in the script, I can
not find any sleep or wait command.
Will commit do the trick? In the book it says is for macros, but can it be
used for this same purpose on scritps?
Thanks for your help
Maria
<Prev in Thread] Current Thread [Next in Thread>