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.
Getting Empty DASD Volume
-
- Posts: 474
- Joined: Thu Mar 10, 2016 5:03 pm
- Skillset: assembler rexx zOS ispf racf smf
- Referer: saw it in the experts foprum thought I could help here
Re: Getting Empty DASD Volume
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.
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
Hello Willy, you anderstood well my question.
For example, In the dasd volume : KDBP01
if there is only those datasets ::
i consider the dasd volume is empty.
For example, In the dasd volume : KDBP01
if there is only those datasets ::
Code: Select all
SYS1.VTOCIX.KDBP01
SYS1.VVDS.VKDBP01
i consider the dasd volume is empty.
Re: Getting Empty DASD Volume
If you read the DCOLLECT section at the end of the IDCAMS manual, you will know exactly how to do this
-
- Similar Topics
- Replies
- Views
- Last post
-
- 0
- 2677
-
by samb01
View the latest post
Thu Feb 04, 2021 6:34 pm
-
- 0
- 1395
-
by samb01
View the latest post
Wed Nov 03, 2021 8:22 pm
-
- 4
- 4769
-
by willy jensen
View the latest post
Thu Nov 12, 2020 2:40 pm