View previous topic :: View next topic
|
Author |
Message |
madhav_in
New User
Joined: 21 Nov 2006 Posts: 12 Location: chennai
|
|
|
|
Hi,
I have been getting this abend for quite sometime in the batch processing. The job uses various VSAM files in the I/O mode and sometimes the job abends when trying to write into a particular file with a return code of 24. I checked the forum about this error and found that increasing the secondary extent could do the job. But what baffles me is that , Since the files are I/O files , I need to restore them from backups before restarting the job. Now when I restore these I/O files ( without making anyother changes ) and restart, the job runs fine without any problem. Is there a logical reason to this type of an abend or is it just some environment issue ? |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
When you restore them, haven't you effectively REORG'd them? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
dbzTHEdinosauer wrote: |
When you restore them, haven't you effectively REORG'd them? |
Absolutely correct. You have reorganised the file and released any unusable space to be usable again.
Have a word with your JCLMS (Prod support) to schedule a periodic reorg and also to review the space allocations of the file. |
|
Back to top |
|
|
madhav_in
New User
Joined: 21 Nov 2006 Posts: 12 Location: chennai
|
|
|
|
Thanks a lot for your reply , I dont understand what this REORG means ? How does restoring the file cause this REORG, I am just going to copy the backup file to the VSAM file, this causes REORG ? Is there a way to tackle this issue from my side ? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
A good intro to VSAM
Have a read, it is well worth the effort.
But ............. a restore from backup is a little like an initial load of the VSAM cluster. Every record is in its correct place with no wasted internal space. Once a file is written to and has CI/CA splits then some space may be 'Free' but is unusable. |
|
Back to top |
|
|
madhav_in
New User
Joined: 21 Nov 2006 Posts: 12 Location: chennai
|
|
|
|
Hi Expat I will surely go through the IBM redbooks link that you had mentioned to understand why this happens. So as u said when i copy from a backup, it is like an initial load and that any wasted space will be utilized. Then will having an IDCAMS step copying the backup file to the original VSAM file before the program runs, do the trick of solving the problem ? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
It will reorg the cluster, but as nI said about 8 posts ago, have a word with the people who maintain the cluster and get the space allocations changed to allow for contingency. |
|
Back to top |
|
|
|