View previous topic :: View next topic
|
Author |
Message |
Vineet
New User
Joined: 14 Sep 2005 Posts: 20
|
|
|
|
Hi All,
I am facing a logical error 92 for the VSAM file. Below is teh description of the problem.
I am having one flat file & one VSAM file(Both open in Input Mode). I read flat file & base on the record red, using some of field I generate Key for the VSAM file. When based on generated key I tried to read the VSAM file, if record not found then then RC=23 is fine, but if record in existing then I am getting logic Error: 92. I am not sure Y? below is the Key format of VSAM file. One Space only.
0001 000000000000001 000000000000002.
VSAM file Opend in Input Mode, Org: Indexed & Access: is Random. Also chckd record in FA.
I appreciate if U ppl can help me out.
Thanx
Rgds Vinit A. |
|
Back to top |
|
|
gskulkarni
New User
Joined: 01 Mar 2006 Posts: 70
|
|
|
|
Try using ACCESS MODE DYNAMIC instead of RANDOM |
|
Back to top |
|
|
Vineet
New User
Joined: 14 Sep 2005 Posts: 20
|
|
|
|
thanx GS but it didn't work out. |
|
Back to top |
|
|
gskulkarni
New User
Joined: 01 Mar 2006 Posts: 70
|
|
|
|
as i replied to you in PM, you need to check if your code is in line with teh file. is it defined correctly.
SELECT COMMUTER-FILE ASSIGN TO COMMUTER
ORGANIZATION IS INDEXED
ACCESS IS RANDOM
RECORD KEY IS COMMUTER-KEY
FILE STATUS IS COMMUTER-FILE-STATUS COMMUTER-VSAM-STATUS. |
|
Back to top |
|
|
Vineet
New User
Joined: 14 Sep 2005 Posts: 20
|
|
|
|
Yep GS I checked every thng.What ever U askng.Still M getting this error I am my self surprised. |
|
Back to top |
|
|
|