There a few options

1) If you have an automation tool, let it manage the online/offline process.  
Once devices are offline, have the automation tool submit the job

2) You can use the JCL statement COMMAND

3) You can use the JES2 $VS command in JCL

4) Read up on DFDSS for copying, I think it will take volumes offline if 
duplicate volser

5) If you have a scheduling tool, you could see if it could run the process

6)  Build a REXX that reads an INPUT file with the volumes to be varied 
offline, then have it use ISFEXEC (SDSF REXX) to do the varies


Probably a few more options

Lizette

> -----Original Message-----
> From: IBM Mainframe Discussion List [mailto:[email protected]] On
> Behalf Of william janulin
> Sent: Friday, April 28, 2017 5:41 AM
> To: [email protected]
> Subject: VARY command in a batch job
> 
> To list;
>   Is there a way to issue a VARY cuu,offline command in a batch job. I need to
> do some full volume copies, including the volser,  and then vary the receiving
> offline.
> 
> Thank you in advance, Bill J.
> 
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions, send email to
> [email protected] with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to