I don't know if you are interested in a vendor product to do this for you or not, but SyzCMD/z can do everything you needed for you (including waiting for the STC to stop). It's not free, but it's much cheaper than anything from IBM or CA.
http://www.syzygyinc.com/SyzCMDz.htm Brian ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN