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

How to delete or extend VTOC


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

Active User


Joined: 03 Jun 2010
Posts: 103
Location: Dalian

PostPosted: Mon May 23, 2011 6:23 pm
Reply with quote

When I catlg a data set at volume TSO0002, it displayed the message below
Code:
VOLUME TSO0002 VTOC IS FULL


I must delete some data set then I can catlg it .
How can I delete or extend the VTOC ?

the VTOC for TSO0002 now is below
Code:
Volume . : TSO002                                                         
Command ===>                                                               
                                                                           
Unit . . : 3390                                                           
                                                                           
 Volume Data             VTOC Data              Free Space  Tracks   Cyls 
 Tracks . :   50,085     Tracks  . :      30    Size  . . :  28,793   1,900
 %Used  . :       42     %Used . . :      90    Largest . :  26,770   1,784
 Trks/Cyls:       15     Free DSCBS:     157                               
                                                Free Extents . :     100   
Back to top
View user's profile Send private message
gylbharat

Active Member


Joined: 31 Jul 2009
Posts: 565
Location: Bangalore

PostPosted: Mon May 23, 2011 6:28 pm
Reply with quote

Hi,
You can use any file utility to find the datasets which exists on the volume TSO0002. Then you can delete unwanted datasets from that volume.
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Mon May 23, 2011 6:36 pm
Reply with quote

This would actually be a job to be performed by the storage management group responsible for DASD volumes.

Unless you ARE storage management DO NOT try to do this.
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2594
Location: Silicon Valley

PostPosted: Mon May 23, 2011 7:12 pm
Reply with quote

The storage management team needs to offload all of the datasets and specify the VTOC size while reformatting the DASD.
Back to top
View user's profile Send private message
chaoj

Active User


Joined: 03 Jun 2010
Posts: 103
Location: Dalian

PostPosted: Mon May 23, 2011 7:18 pm
Reply with quote

OK, I see , thanks all (Pedro,expat and gylbharat)
Back to top
View user's profile Send private message
nevilh

Active User


Joined: 01 Sep 2006
Posts: 262

PostPosted: Tue May 24, 2011 11:56 am
Reply with quote

If you have ICKDSF Release 17 or later you can extend the VTOC without the need to offload any datasets. This feature has been available for at least 5 years
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Tue May 24, 2011 12:56 pm
Reply with quote

On the point raised by nevilh above, from past experience you may have to move some datasets as the VTOC will not extend unless it can do so contiguously. However, this may have changed since the last time that I had to do this.

Again, depending on which software products that you have installed at your site there may be other ways to do this, FDR/CPK is a great tool for this.

But as mentioned previously, if you ain't storage, then don't try this at home.
Back to top
View user's profile Send private message
nevilh

Active User


Joined: 01 Sep 2006
Posts: 262

PostPosted: Tue May 24, 2011 1:34 pm
Reply with quote

Quote:
from past experience you may have to move some datasets
no you won't Apar II08349 describes the process
Back to top
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1315
Location: Vilnius, Lithuania

PostPosted: Mon Jun 06, 2011 12:08 am
Reply with quote

nevilh wrote:
If you have ICKDSF Release 17 or later you can extend the VTOC without the need to offload any datasets. This feature has been available for at least 5 years

Do you have sample JCL for this, I might need to do this RSN...
Back to top
View user's profile Send private message
nevilh

Active User


Joined: 01 Sep 2006
Posts: 262

PostPosted: Mon Jun 06, 2011 4:27 pm
Reply with quote

The JCL should look something like this

// EXEC PGM=ICKDSF
//DD1 DD DISP=SHR,UNIT=3390,VOL=SER=xxxxxx
//SYSPRINT DD SYSOUT=A
//SYSIN DD *
REFORMAT DDNAME(DD1) VERIFY(xxxxxx) EXTVTOC(30) EXTINDEX(15)

IF you cannot extend the VTOC (data allocated directly behind it), try

// EXEC PGM=ICKDSF
//DD1 DD DISP=SHR,UNIT=3390,VOL=SER=xxxxxx
//SYSPRINT DD SYSOUT=A
//SYSIN DD *
REFORMAT UNIT(1234) DDNAME(DD1) VERIFY(xxxxxx) NEWVTOC(cc,hh)

UNIT must specify the address of the offline device to be reformatted

where cc,hh is a valid cylinder head address (note disk must be offline for this version) "ANY" can be substituted for cc,hh and then the system will decide where to place it
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 DELETE SPUFI DB2 1
No new posts DSNTIAUL driven delete IBM Tools 0
No new posts How to delete a user's alias from the... JCL & VSAM 11
No new posts Delete file row if blanks in the firs... DFSORT/ICETOOL 5
No new posts volume mass delete RMM JCL & VSAM 2
Search our Forums:

Back to Top