For me, the easiest way is to display the volume in ISPF 3.4 and verify that no 
datasets appear other than the VTOC index and the VVDS, neither of which need 
appear.

But you asked for a batch method.  You could execute IEHLIST and scan the 
output as described above.  You can run ISPF in batch and use LMDINIT and 
LMDLIST to mimic the action of 3.4.  You can read the VTOC looking for type 1 
DSCBs.

Once you verify that a volume is empty, you need some method to insure new 
datasets are not placed on it.  SMS supports DISABLE NEW.  The best I can think 
of for a non-SMS volume is to vary it offline until you are ready to do 
something with it.

> -----Original Message-----
> From: IBM Mainframe Discussion List [mailto:[email protected]] On
> Behalf Of [email protected]
> Sent: Monday, September 25, 2017 7:44 PM
> To: [email protected]
> Subject: how to verify whether the volume is empty or not?
> 
> 
> Hi all
> 
>  We want to move all datasets from one volume to the other volume.
> 
> Could you tell us how to verify whether the volume is empty or not by batch?

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

Reply via email to