View previous topic :: View next topic
|
Author |
Message |
rahuindo
New User
Joined: 09 Apr 2008 Posts: 83 Location: Chennai
|
|
|
|
Hi!
I have to delete some 1000 VSAM files which have actually over-allocated. The files have different HLQs. I think i can take the list of the VSAM files as input in a file and then delete these files either using a COBOL program or using a JCL. But i dont know how to delete it using either of them!1 Is there a possibility of doing so?? Your help would be greatly appreciated.. |
|
Back to top |
|
|
Gnanas N
Active Member
Joined: 06 Sep 2007 Posts: 792 Location: Chennai, India
|
|
|
|
IDCAMS DELETE... |
|
Back to top |
|
|
rahuindo
New User
Joined: 09 Apr 2008 Posts: 83 Location: Chennai
|
|
|
|
I tried that but i am confused whether it can delete all the VSAM files with different HLQ?? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
Do you want to delete every VSAM file for a given HLQ, or only selected VSAM files ? |
|
Back to top |
|
|
rahuindo
New User
Joined: 09 Apr 2008 Posts: 83 Location: Chennai
|
|
|
|
I want to delete only selected VSAM files. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
How will you know which files are to be deleted and which ones retained |
|
Back to top |
|
|
rahuindo
New User
Joined: 09 Apr 2008 Posts: 83 Location: Chennai
|
|
|
|
Well, i have to delete all the files which are over-allocated. I have the list, and almost none of the files fall into certain criteria like putting them A.A.B.* or something like that. Hence, i think i can have a PS containing all these VSAM files and delete them one by one either through JCl or by a small program. But then is there a way to do so?? Or is there any other alternative approach?? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
You could read the file containing the names of the datasets to delete and then generate the jcl and control statements to delete them.
One easy way would be to generate IDCAMS steps to delete the files. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
A couple of suggestions
If your shop has FDR Compactor from Innovation Data Processing, that will release unused VSAM space.
If your SMS environment is set up with some thought then VSAM free space release is available too. |
|
Back to top |
|
|
rahuindo
New User
Joined: 09 Apr 2008 Posts: 83 Location: Chennai
|
|
|
|
Thanks for your Suggestions!!
I am trying out the suggestion given by Dick since my shop doesnt have the FDR Compactor and evn the VSAM free space release is also not available. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10886 Location: italy
|
|
|
|
lots of traffic when there is a simpler solution...
I would suggest...
edit the dataset list
insert a new line with ...
Code: |
delete cluster purge |
46 blanks in between
shift right the datast's names to align them with the second blank
after the delete
Code: |
delete cluster purge
12345678901234567890123456789012345678901234
some.dataset |
issue the line commands
"C" on the delete line
"O99999" on the other lines
delete the fisrt line
et voila' the idcams sysin ready to delete all Your datasets |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
rahuindo wrote: |
Thanks for your Suggestions!!
I am trying out the suggestion given by Dick since my shop doesnt have the FDR Compactor and evn the VSAM free space release is also not available. |
VSAM free space release became available with z/OS 1.3 - just needs the SMS configuration to be correctly set up.
As an additional comment, deleteing the files does seem a bit drastic for being over allocated. Do they get restored but smaller afterwards. |
|
Back to top |
|
|
|