View previous topic :: View next topic
|
Author |
Message |
T.O.
New User
Joined: 27 Apr 2006 Posts: 23
|
|
|
|
We have 3000 tapes. They are 3490 tapes and we're phasing them out. We recently moved our datacentre and somehow these tapes were left behind, not only that but they were also degauzed. Now we have about 2500 of those tapes with HSM datasets on it. Our catalogue has all these datasets in MIGRAT2 status that can't be restored. There is about 50-60 datasets per tape. Is there an easy way of updating our catalogue rather than going through each tape and uncataloging or deleting one dataset at a time.
Any help quickly would be appreciated. Thanks ! |
|
Back to top |
|
|
cpuhawg
Active User
Joined: 14 Jun 2006 Posts: 331 Location: Jacksonville, FL
|
|
|
|
If the tapes were degauzed, then you only need to be concerned with cleaning up the master catalogue.
Go to 3.4, enter P on the command line and enter the dataset pattern of migrated datasets. (i.e. HLQ.MIGRATED.DATASETS.FILE*.**)
Notice "Data set list printed" in the upper right corner of the panel.
Enter LIST on the command line, then select 3 (Keep existing data set and
continue with new data set)
Notice "LIST data set kept" in the upper right corner of the panel
Enter HELP on the command line and observe the dataset that was kept.
Edit the kept dataset (i.e. HLQ.SPF?.LIST). Edit the file down to just the datasets that need to be deleted.
Now use the following JCL to do the delete:
Code: |
//HDEL001 EXEC PGM=IKJEFT01
//SYSTSPRT DD SYSOUT=*
//SYSTSIN DD *
HDELETE 'HLQ.MIGRATED.DATASET.FILE0001' WAIT PURGE
HDELETE 'HLQ.MIGRATED.DATASET.FILE0002' WAIT PURGE
/*
|
|
|
Back to top |
|
|
cpuhawg
Active User
Joined: 14 Jun 2006 Posts: 331 Location: Jacksonville, FL
|
|
|
|
Please note the HDELETE should start in position 2
Code: |
//HDEL001 EXEC PGM=IKJEFT01
//SYSTSPRT DD SYSOUT=*
//SYSTSIN DD *
HDELETE 'HLQ.MIGRATED.DATASET.FILE0001' WAIT PURGE
HDELETE 'HLQ.MIGRATED.DATASET.FILE0002' WAIT PURGE
/*
|
The forum is moving the HDELETE to position 1 even though I have it in position 2. If I move it to position 3, it stays at 3. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Personally I'd use DELVOL, it deletes the tape from HSM, and also maintains the HSM CDS inline with the deletes.
You only need delete the volume rather than each dataset within HSM. |
|
Back to top |
|
|
TizMe
New User
Joined: 05 Jan 2006 Posts: 72
|
|
|
|
You can't DELVOL a migration tape while it still contains data. You will need to HDELETE each dataset first and then DELVOL the tape. |
|
Back to top |
|
|
|