MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

VSAM logical error

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
kavi
Beginner


Joined: 15 Sep 2006
Posts: 64
Topics: 22

PostPosted: Thu Jun 02, 2011 6:46 am    Post subject: VSAM logical error Reply with quote

Hi All,

I have a KSDS file with Alternate Index. Am trying to read alternate index(PATH) with a key, during this read am getting logical error 90 for this key, if i read another key i dont have any problem, when i manually checked this key in PATH, thru File manager, it got terminated, but the record is available in AIX and KSDS. I am using EZT for programming. The below is the error code. Any help on this would be appreciated.

Code:
 A011 VSAM - LOGICAL  ERROR - FILE XXXX     - CODE 144(90)


Is there any possiblity for base and AIX (path) not in sync.
My KSDS define already used UPDATE


Thanks, Kavi
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Thu Jun 02, 2011 8:49 am    Post subject: Reply with quote

kavi,

Looks like you have a corrupted vsam file. The file status code 90 is returned when you encounter an invalid pointer (no associated base record) in an Alternate Index or a file status code 90 is returned when the file i-o result was that a bad open file error occurrerd. This could be caused by a number of reasons, the most likely is that the file was not properly closed to start with.

Run an idcams verify on the vsam file and re-run your ezt program.

Kolusu

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
kavi
Beginner


Joined: 15 Sep 2006
Posts: 64
Topics: 22

PostPosted: Thu Jun 02, 2011 9:04 am    Post subject: Reply with quote

Thanks Kolusu,
This was happend in production toady. When we analyzed, found that, yesterday reorg was done for this VSAM file. So this might cause the problem. Running verify will solve the problem, or it could be some thing else? Can you please explain how the verify will work on VSAM file.

Thanks, Kavi
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Thu Jun 02, 2011 9:14 am    Post subject: Reply with quote

kavi wrote:
yesterday reorg was done for this VSAM file. So this might cause the problem.


Never knew a Re-org can be done on a VSAM file. How did you re-org a vsam file?

kavi wrote:

Can you please explain how the verify will work on VSAM file.


Read Chapter 3.4 which will explain Verify command in Detail

www.redbooks.ibm.com/redbooks/pdfs/sg246105.pdf

Kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
papadi
Supermod


Joined: 20 Oct 2009
Posts: 594
Topics: 1

PostPosted: Thu Jun 02, 2011 3:11 pm    Post subject: Reply with quote

I suspect you mean an unload/reload of the data was done to accomplish the "re-org". This (run conrrectly) will not cause a file status code 90.

When you say this happened "in Production", the problem process is more likely the victim rather than the culprit. My guess is that "something else" damaged the file. And this needs to be determined / prevented from happening again.

Only running the verify may lead to worse problems later. . .
_________________
All the best,

di
Back to top
View user's profile Send private message
kavi
Beginner


Joined: 15 Sep 2006
Posts: 64
Topics: 22

PostPosted: Thu Jun 02, 2011 11:56 pm    Post subject: Reply with quote

Hi Kolusu,

unload, delete, define, repro we normally call this as reorg. Not sure if this is correct term.


Thanks for your help.

Kavi
Back to top
View user's profile Send private message
warp5
Intermediate


Joined: 02 Dec 2002
Posts: 429
Topics: 18
Location: Germany

PostPosted: Fri Jun 03, 2011 12:57 am    Post subject: Reply with quote

Did you build the aix new or how did you handle it / them?
Back to top
View user's profile Send private message Visit poster's website
kavi
Beginner


Joined: 15 Sep 2006
Posts: 64
Topics: 22

PostPosted: Fri Jun 03, 2011 8:52 am    Post subject: Reply with quote

Hi warp5,

Yes, I build the AIX new, actually my base cluster had 3 AIX, and for only one primary record the corresponding AIX records were missed in one AIX, other two AIX are perfect. When tried open the path for this AIX for the key, it got terminated. As per my understanding even if we delete the record in AIX, it also deletes base. If this is correct then, am really not sure how the VSAM corrupted.

Thanks, Kavi
Back to top
View user's profile Send private message
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Fri Jun 03, 2011 10:30 am    Post subject: Reply with quote

i have never heard of an i/o that would have you delete the index and then expect the base to be deleted.

normally, you delete the base, and if the idcams idx and aix parms are correct, the indexes will also show the delete of the record.

don't remember if records in the base are physically deleted or logically deleted.
same for the indexes.
too lazy to look it up,
but, this fine manual VSAM Demystified will probably
answer all your questions.
_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group