Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Updating catalogues from 3000 tapes

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Updating catalogues from 3000 tapes
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    Post subject: Re: Updating catalogues from 3000 tapes
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    Post subject: Re: Updating catalogues from 3000 tapes
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: 8593
Location: Back in jolly old England

PostPosted: Sat Apr 14, 2007 6:50 pm    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Updating the counters after eliminati... PANDU1 DFSORT/ICETOOL 12 Mon Nov 21, 2016 9:47 am
No new posts Updating Cursor row withour using FOR... chandan.inst DB2 15 Tue Nov 08, 2016 11:17 am
No new posts Updating online Db2 table kishpra DB2 3 Fri Aug 12, 2016 2:44 pm
This topic is locked: you cannot edit posts or make replies. Updating value of key using rewrite s... ParminderKumar COBOL Programming 4 Thu Aug 04, 2016 12:46 am
No new posts Obtaining a signed value when updatin... Shrikant Kumar DFSORT/ICETOOL 2 Wed Dec 24, 2014 11:04 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us