View previous topic :: View next topic
|
Author |
Message |
Praveen Kumar Kolar
New User
Joined: 18 Mar 2021 Posts: 31 Location: India
|
|
|
|
Hi Team,
Can someone help me with the JCL to find the list of orphaned DFHSM MCDS D records. |
|
Back to top |
|
|
Joerg.Findeisen
Senior Member
Joined: 15 Aug 2015 Posts: 1337 Location: Bamberg, Germany
|
|
Back to top |
|
|
sergeyken
Senior Member
Joined: 29 Apr 2008 Posts: 2145 Location: USA
|
|
|
|
JCL cannot do it. |
|
Back to top |
|
|
Praveen Kumar Kolar
New User
Joined: 18 Mar 2021 Posts: 31 Location: India
|
|
|
|
Hello Joerg.
thank you for the above command. I could see lot of datasets are missed in the output. From the MCDS decollect report I found few datasets which don't have catalog entry but MCD record exist's in the MCDS.
hsend list dsn(TST.D7GT.DATA.DUBAI.G1510V00) MCDS term
DSN=TST.D7GT.DATA.DUBAI.G1510V00 MIGVOL=AT0418 DSO=PS SDSP=NO
LAST REF=17/05/19 MIG=17/05/20 TRKS=00000015 2K BLKS= ******* TIMES MIG= 00001
16K BLKS=0000000013 LAST MIGVOL=*NONE*
ENCRYPTION TYPE=*******
KEYLABEL=****************************************************************
No catalog entry exist's for the same.
TST.D7GT.DATA.DUBAI.G1510V00 No data set names found
Can you please tell me how these dataset's are missed in the
HSEND AUDIT DATASETCONTROLS(MIGRATION) NOFIX ODS(<output_dsn>) output.
Please advice. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10888 Location: italy
|
|
|
|
if no entry exists in the catalog for a dataset in a GDG. the dataset is gone
so if the MCDS entry is missing .. that's part of the logic |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10888 Location: italy
|
|
|
|
hit the back button and got a duplicate post |
|
Back to top |
|
|
Joerg.Findeisen
Senior Member
Joined: 15 Aug 2015 Posts: 1337 Location: Bamberg, Germany
|
|
|
|
When you try to AUDIT the DSN, do you see an error then?
Code: |
HSEND AUDIT DSN(TST.D7GT.DATA.DUBAI.G1510V00) MCDS TERM |
I would expect something like *ERR 03. |
|
Back to top |
|
|
Praveen Kumar Kolar
New User
Joined: 18 Mar 2021 Posts: 31 Location: India
|
|
|
|
Hi Joerg,
Thank you for the quick response.
I got what you excepted.
AUD=DS DSN=TST.D7GT.DATA.DUBAI.G1510V00 ERROR TYPE= *ERR 03
DSN ON VOL=?????? CTLG VOL=-NONE- MIG VOL= AT0418 BACK VOL=-NONE-
Any particular reason why it was not shown in the below output:
AUDIT DATASETCONTROLS(MIGRATION) NOFIX ODS(PK$Z1L4.ORPHAN.MCDSREC) |
|
Back to top |
|
|
Joerg.Findeisen
Senior Member
Joined: 15 Aug 2015 Posts: 1337 Location: Bamberg, Germany
|
|
|
|
On my side I get what's to be expected. Could you please check the output again for 'ERR 03' msgs?
Code: |
COMMAND ENTERED:
AUDIT DSCTL(MIGRAT) NOFIX ODS(<MYDSN>)
/* ERR 03 DSN1.SHOWMVS.IPL.G0053V00 NOT CATALOGED, HAS MIGRATION COPY +
/* HSM.HMIG.T051013.DSN1.SHOWMVS.B0177
/* ERR 03 DSN1.SHOWMVS.IPL.G0054V00 NOT CATALOGED, HAS MIGRATION COPY +
/* HSM.HMIG.T051013.DSN1.SHOWMVS.B0075
- END OF - ENHANCED AUDIT - LISTING - |
|
|
Back to top |
|
|
Joerg.Findeisen
Senior Member
Joined: 15 Aug 2015 Posts: 1337 Location: Bamberg, Germany
|
|
|
|
Please, try also the Original AUDIT command. It is not recommended by IBM anymore but maybe lists at least some of your orphaned entries.
Code: |
HSEND AUDIT MCDS LEVEL(TST.D7GT) FIX REPORT(ALL) ODS(<your_output_dsn>) |
Instead of REPORT(ALL) you can substitute also REPORT(ERR), however results may be incomplete.
Look for the following columns:
Code: |
DATA SET ON CATALOGED MIGRATED
VOLUME TO VOLUME TO VOLUME
?????? -NONE- FT4818
?????? -NONE- FS1001
?????? -NONE- FS3826
?????? -NONE- FS1888
?????? MIGRAT FT0526 |
|
|
Back to top |
|
|
Praveen Kumar Kolar
New User
Joined: 18 Mar 2021 Posts: 31 Location: India
|
|
|
|
Hi Joerg,
The audit command is still running and hopefully this time the missing files will also be captured.
Thank you so much for the help. |
|
Back to top |
|
|
Joerg.Findeisen
Senior Member
Joined: 15 Aug 2015 Posts: 1337 Location: Bamberg, Germany
|
|
|
|
The REPORT(ALL) will produce a full listing, not only errors. That's the reason why it takes some time to complete.
Besides that, please check if you have other errors in the Control Datasets as well. I have not yet an explanation at hand why the DSCTL(MIG) did not work for you. That in general would be:
Code: |
HSEND AUDIT VOLUMECONTROLS(MIGRATION) NOFIX ODS(<output_dsn>)
HSEND AUDIT VOLUMECONTROLS(BACKUP) NOFIX ODS(<output_dsn>)
HSEND AUDIT VOLUMECONTROLS(RECOVERABLE) NOFIX ODS(<output_dsn>)
HSEND AUDIT DATASETCONTROLS(MIGRATION) NOFIX ODS(<output_dsn>)
HSEND AUDIT DATASETCONTROLS(BACKUP) NOFIX ODS(<output_dsn>) |
|
|
Back to top |
|
|
Pete Wilson
Active Member
Joined: 31 Dec 2009 Posts: 592 Location: London
|
|
|
|
You can have MCD records remaining in the MCDS after datasets are deleted depending on the MIGRATIONCLEANUPDAYS value in the DFHSM parmlib. |
|
Back to top |
|
|
Joerg.Findeisen
Senior Member
Joined: 15 Aug 2015 Posts: 1337 Location: Bamberg, Germany
|
|
|
|
This is true for MIGRATIONCLEANUPDAYS, but they would not be reported by IDCAMS DCOLLECT. Best way to find issues in the CDS are the recommended AUDIT functions. |
|
Back to top |
|
|
Praveen Kumar Kolar
New User
Joined: 18 Mar 2021 Posts: 31 Location: India
|
|
|
|
Hi Team,
Thank you very much for all your responses.
I will check the DFHSM ARC member for MIGRATIONCLEANUPDAYS value and update it accordingly.
Regards,
Praveen |
|
Back to top |
|
|
Pete Wilson
Active Member
Joined: 31 Dec 2009 Posts: 592 Location: London
|
|
Back to top |
|
|
Praveen Kumar Kolar
New User
Joined: 18 Mar 2021 Posts: 31 Location: India
|
|
|
|
Hi Team,
Is there a way to list all the backup datasets from BCDS apart from decollect report.
Here is the question I have to answer.
Number of archived datasets? Number of backup datasets?
Thank you in advance!! |
|
Back to top |
|
|
Joerg.Findeisen
Senior Member
Joined: 15 Aug 2015 Posts: 1337 Location: Bamberg, Germany
|
|
|
|
Yes, but open a new thread. |
|
Back to top |
|
|
Praveen Kumar Kolar
New User
Joined: 18 Mar 2021 Posts: 31 Location: India
|
|
|
|
Hi Joerg.
Sure. I will do.
Thank you |
|
Back to top |
|
|
|