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
 

 

How to delete or extend VTOC

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: How to delete or extend VTOC
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Mon May 23, 2011 6:36 pm    Post subject:
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

Senior Member


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

PostPosted: Mon May 23, 2011 7:12 pm    Post subject: Reply to: How to delete or extend VTOC
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    Post subject: Reply to: How to delete or extend VTOC
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: 258

PostPosted: Tue May 24, 2011 11:56 am    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Tue May 24, 2011 12:56 pm    Post subject:
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: 258

PostPosted: Tue May 24, 2011 1:34 pm    Post subject:
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

Active Member


Joined: 07 Feb 2009
Posts: 984
Location: Oostende, Belgium

PostPosted: Mon Jun 06, 2011 12:08 am    Post subject:
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: 258

PostPosted: Mon Jun 06, 2011 4:27 pm    Post subject:
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    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 JCL to delete component in a package sundaram.naveen Compuware & Other Tools 14 Tue Nov 29, 2016 6:21 pm
No new posts How to delete second instance from Fl... Gunapala CN DFSORT/ICETOOL 6 Tue Oct 18, 2016 11:42 pm
No new posts Delete record or Reset RC code using ... mpawan Compuware & Other Tools 4 Tue Jul 26, 2016 3:52 pm
No new posts Delete VSAM File Records amitc23 CICS 6 Sun Apr 10, 2016 10:10 am
No new posts DB2 Stored Procedure - Dynamic SQL - ... GuyC DB2 2 Wed Feb 17, 2016 5:10 pm


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