Page 1 of 1

Getting Empty DASD Volume

PostPosted: Thu Feb 14, 2019 1:48 pm
by samb01
Hello, i'am looking for a way to get empty dasd volume of a storage groupe by MXI or Dcollect.
May be there an option to get it ?

Thank's for your help.

Re: Getting Empty DASD Volume

PostPosted: Thu Feb 14, 2019 2:55 pm
by willy jensen
I assume that you mean to find a way to identify empty disks in a storage group.
First of all, there really is no such thing. If a disk is SMS managed it will have at least a VTOC, most likely a VTOC index, and a VVDS unless it is a newly initialized disk with no pre-defined VVDS.
I am not aware of any commands or products that can tell you if a disk only contains those datasets.
I guess one could use MXIREXX (since you mention MXI) to make a list of a SG, then process the list to find disks where free space is close to total capacity, then do a list VTOC of those disks to check for 'real' datasets. For list VTOC I would use the VTOC command from CBTTAPE.ORG file 112.

Re: Getting Empty DASD Volume

PostPosted: Thu Feb 14, 2019 3:34 pm
by samb01
Hello Willy, you anderstood well my question.
For example, In the dasd volume : KDBP01
if there is only those datasets ::


SYS1.VTOCIX.KDBP01
SYS1.VVDS.VKDBP01
 


i consider the dasd volume is empty.

Re: Getting Empty DASD Volume

PostPosted: Thu Feb 14, 2019 3:40 pm
by expat
If you read the DCOLLECT section at the end of the IDCAMS manual, you will know exactly how to do this