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

Job Abends with a file status code of 24 when writing VSAM


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

New User


Joined: 21 Nov 2006
Posts: 12
Location: chennai

PostPosted: Tue Jul 29, 2008 1:08 pm
Reply with quote

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
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Tue Jul 29, 2008 1:14 pm
Reply with quote

When you restore them, haven't you effectively REORG'd them?
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Tue Jul 29, 2008 1:29 pm
Reply with quote

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
View user's profile Send private message
madhav_in

New User


Joined: 21 Nov 2006
Posts: 12
Location: chennai

PostPosted: Tue Jul 29, 2008 6:40 pm
Reply with quote

Thanks a lot for your reply icon_smile.gif, 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
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Tue Jul 29, 2008 6:48 pm
Reply with quote

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
View user's profile Send private message
madhav_in

New User


Joined: 21 Nov 2006
Posts: 12
Location: chennai

PostPosted: Tue Jul 29, 2008 9:26 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Wed Jul 30, 2008 11:32 am
Reply with quote

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
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 Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top