Sorry - the COMMAND statement should have been: // COMMAND 'VARY xxxx-yyyy,OFFLINE'
No comman after the word COMMAND. Lizette > >You can use the $VS function or the JCL COMMAND function. Though I am not >sure if you are JES2 or JES3. I use this under JES2. > >For JCL, I now use > >// COMMAND,'VARY xxxx-yyyy,OFFLINE' > > >Lizette > > > >>We are z/OS V1R7. I have a need to vary online and offline a large number of >>DASD volumes. What would be the best way to perform this. I have used the >>following JCL, but was wondering if there way a better way. >> >>//STEP010 EXEC PGM=IEBEDIT,COND=(0,NE) >>//SYSPRINT DD SYSOUT=* >>//SYSUT1 DD DATA,DLM='¬¬' >>/*$VS,'V DA00,OFFLINE' >>/*$VS,'V DA01,OFFLINE' >>/*$VS,'V DF55,OFFLINE' >>/*$VS,'S X' >>¬¬ >>//SYSUT2 DD SYSOUT=(A,INTRDR),DCB=BLKSIZE=80 >>//SYSIN DD DUMMY >> >>Any help would be appreciated. >> >> ---------------------------------------------------------------------- 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

