IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Updating catalogues from 3000 tapes


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
T.O.

New User


Joined: 27 Apr 2006
Posts: 23

PostPosted: Fri Apr 13, 2007 8:24 pm
Reply with quote

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
View user's profile Send private message
cpuhawg

Active User


Joined: 14 Jun 2006
Posts: 331
Location: Jacksonville, FL

PostPosted: Fri Apr 13, 2007 10:45 pm
Reply with quote

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
View user's profile Send private message
cpuhawg

Active User


Joined: 14 Jun 2006
Posts: 331
Location: Jacksonville, FL

PostPosted: Fri Apr 13, 2007 10:52 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Sat Apr 14, 2007 6:50 pm
Reply with quote

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
View user's profile Send private message
TizMe

New User


Joined: 05 Jan 2006
Posts: 72

PostPosted: Tue May 15, 2007 6:34 am
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Updating a 1 byte thats in occurs mul... DFSORT/ICETOOL 6
No new posts Updating endevor JCLs CA Products 5
No new posts Updating DFSMShsm DB when objects are... JCL & VSAM 0
No new posts Query on updating the control cards. DFSORT/ICETOOL 2
This topic is locked: you cannot edit posts or make replies. Query on updating the control cards. JCL & VSAM 2
Search our Forums:

Back to Top