On Thu, 2 Mar 2006 20:41:51 -0500, Shmuel Metz (Seymour J.) <[EMAIL PROTECTED]> wrote:
>In <[EMAIL PROTECTED]>, >on 03/02/2006 > at 01:02 PM, Philip Miscione <[EMAIL PROTECTED]> said: > >>What is the best method of issuing vary online/offline commands in >>the batch. > >The TSO CONSOLE command. > >-- > Shmuel (Seymour J.) Metz, SysProg and JOAT > ISO position; see <http://patriot.net/~shmuel/resume/brief.html> >We don't care. We don't have to care, we're Congress. >(S877: The Shut up and Eat Your spam act of 2003) > >---------------------------------------------------------------------- >For IBM-MAIN subscribe / signoff / archive access instructions, >send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO >Search the archives at http://bama.ua.edu/archives/ibm-main.html You can use the CommandZ program on my file on the CBT tape (www.cbttape.org), it's file088. CommandZ will not only allow you to issue the command, but will allow you to test if it worked or not, or if you even really need to issue the command in the first place, you can also have the script wait until the device is actually in the state you wanted: IFONLINE/IFOFFLINE and ONLINE/OFFLINE. You can ask it to work by either VOLSER or Unit Address For instance: IFONLINE V=MVSRS2 <---- check if MVSRS2 online now V 0123,offline <---- if so, vary it offline ENDIF <---- end of our IF group OFFLINE V=MVSRS2 <---- This will pause until the volume is offline S INITDSK,V=0123 <---- do whatever you wanted the disk offline for You could also go by Unit address IFONLINE A=0123 V 0123,OFFLINE ENDIF OFFLINE A=0123 S INITDSK,V=0123 This version of the program is available at no cost (free:). Brian Westerman Syzygy Incorporated ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html

