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

ESDS File getting Corrupted


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

New User


Joined: 11 Nov 2010
Posts: 22
Location: Mumbai

PostPosted: Tue Jul 19, 2011 2:17 am
Reply with quote

Hi All,

Due to unsuccessful execution of a job our ESDS(VSAM) file is getting corrupted and I am unable to use it. Do I able to rebuild its index and use it through any mainframe IBM Utility.

Many Thanks
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Tue Jul 19, 2011 2:22 am
Reply with quote

I guess you realise now that you should back it up first. icon_sad.gif

Is it fixed or variable length?

I'm not aware of a utility to fix it.

What's broken?

When you say "Index" does it have an alternate index?

Otherwise, it just has RBA's (Relative Byte Addresses).

Bill
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1787
Location: Bloomington, IL

PostPosted: Tue Jul 19, 2011 2:24 am
Reply with quote

Given that an ESDS does not have or use an index, it seems unlikely.
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Tue Jul 19, 2011 2:24 am
Reply with quote

You'll have to give a lot more information.

What is the failure in the job (is it to do with the file, or is the file just not closed?)?

What failure do you get when you try to "use" it?

What particular index do you want to build? For an ESDS? Is it an ESDS, or KSDS?

Etc...
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19243
Location: Inside the Matrix

PostPosted: Tue Jul 19, 2011 2:25 am
Reply with quote

Hello,

Explain/define "corrupted". . . .
Back to top
View user's profile Send private message
Gurumanoj Gurusamy

New User


Joined: 11 Nov 2010
Posts: 22
Location: Mumbai

PostPosted: Tue Jul 19, 2011 2:28 am
Reply with quote

Thanks for your response.

We have an automated job which runs continuously through out the day. It process the incoming request and create an entry in ESDS VSAM file. Sometimes due to some storage issue or Environment issue automated job will fail unexpectedly. At that time its Index file is getting corrupted and we are unable to use it.

We need to rebuid its index for other job's processing. Also I belive this issue is happening due to improper file close.

Many Thanks
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Tue Jul 19, 2011 2:36 am
Reply with quote

ESDS files do not contain indices, unless it has an Alternate Index (although this is rare).

How does the RBA get corrupted?

Normally, writes to an ESDS are appended to the file.

Is this being done by Batch COBOL?

Are they fixed or variable length records?

Please explain exactly what's happening....

Bill
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19243
Location: Inside the Matrix

PostPosted: Tue Jul 19, 2011 2:41 am
Reply with quote

Hello,

Quote:
At that time its Index file is getting corrupted and we are unable to use it.
You can repeat this many times and still provide no useful information to those who would help. . . .

Why do you believe there is any "corruption"? If you cannot or will not explain what is happening, we will probably not be able to help.
Back to top
View user's profile Send private message
Gurumanoj Gurusamy

New User


Joined: 11 Nov 2010
Posts: 22
Location: Mumbai

PostPosted: Tue Jul 19, 2011 2:45 am
Reply with quote

An automated job run an exe file of Dialogue Tool(Document Composer) through out the day. It get its input through MQ and create partially composed document where it stored under Sort data and Sort Index file has the index to Sort Data.

Due to unexpected error like environment problem or storage problem, automated job is getting stoped in between. When we tried to use the created sort Index and Sort data in next step, received information as Sort Index Correpted.

I belive this is happening due to the improper file close. Please help
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19243
Location: Inside the Matrix

PostPosted: Tue Jul 19, 2011 2:59 am
Reply with quote

Hello,

Quote:
When we tried to use the created sort Index and Sort data in next step, received information as Sort Index Correpted.
What generated this? Some utility? Some application program?
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Tue Jul 19, 2011 3:10 am
Reply with quote

If it is a file from a software product, you'd maybe be best contacting the vendor. It may well just be an ESDS holding data with its own proprietary file-system inside it. Check the manual for advice.

Also ask them about how to avoid the failures.
Back to top
View user's profile Send private message
Gurumanoj Gurusamy

New User


Joined: 11 Nov 2010
Posts: 22
Location: Mumbai

PostPosted: Tue Jul 19, 2011 3:10 am
Reply with quote

Its an application Dialogue Extream Tool
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Tue Jul 19, 2011 3:17 am
Reply with quote

Well, my bet is that there is nothing you can do about it then, except contact the vendor.

The ESDS is probably just a chunk of disk space, then, using RBA access, the software is storing its own fancy format that no-one else knows about.

Manual/vendor. Avoid the crashes as well, while you're talking to them.
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 Unable to interpret a hex value to De... COBOL Programming 4
No new posts how to eliminate null indicator value... DB2 7
No new posts Format Binary file to EBCDIC JCL & VSAM 4
No new posts Binary File format getting change whi... All Other Mainframe Topics 7
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
Search our Forums:

Back to Top