View previous topic :: View next topic
|
Author |
Message |
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Hi Dick,
Agreed, but now how to deal with it now. If they exist with out catalog entry they (might) exist at multiple volumes & they exist physically & "eating" my DASD, I need to "kill" them, but how ?
Please assist. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hi Anuj,
One way is to create a "list" if all cataloged datasets and the volume where they are cataloged. Then create another "list" gathered from the dasd volumes you are interested - this list would also have dsn and volume. Compare the lists to identify the "orphans".
If there are thousands of dasd volumes and millions of datasets, you may need to break the process into pieces.
Given that most/all of your dasd is sms-managed, the problem should not be large. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Hi Dick,
I do have a list for cataloged DSNs, how to get the DSNs residing on a given volume, is it IDCAMS? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hi Anuj,
You can use IEHLIST/LISTVTOC. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Anuj D. wrote: |
Hi Dick,
I do have a list for cataloged DSNs, how to get the DSNs residing on a given volume, is it IDCAMS? |
Take a look at IGGCSIRX im SYS1.SAMPLIB - much much easier to use the output from this than from IDCAMS. May need some small changes to get exactly what you want, but it is also much better if you want to use wild cards too. |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi Anuj,
if you have FILEAID, you can also use it to list the volumes
Code: |
//STEP0001 EXEC PGM=FILEAID
//SYSPRINT DD SYSOUT=*
//SYSLIST DD DSN=OUTPUT DSN,
// DISP=(,CATLG,DELETE),
// UNIT=SYSDA,
// SPACE=(TRK,(50,10),RLSE),
// DCB=(RECFM=FBM,LRECL=133,BLKSIZE=27930)
//SYSIN DD *
$$DD01 VTOCDSN UNIT=3390,DSNAME=*,VOLSER=(CTL0)
/*
|
Above example will list all volumes prefixed with CTL0
Gerry |
|
Back to top |
|
|
|