View previous topic :: View next topic
|
Author |
Message |
Jeya Raj
New User
Joined: 14 Jan 2007 Posts: 33 Location: USA
|
|
|
|
I got error code '92'(logic errer) when i read the VSAM file seq. Please let me know why i'm getting this error. |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
Jeya Raj wrote: |
I got error code '92'(logic errer) when i read the VSAM file seq. Please let me know why i'm getting this error. |
T'ain't that easy, I've gotten a lot of logic errors in my past, still do occasionally, usually from my mistakes.
What kind of VSAM file were you trying to access?
How were you trying to access it?
Without more information, you will not find an answer.... |
|
Back to top |
|
|
Jeya Raj
New User
Joined: 14 Jan 2007 Posts: 33 Location: USA
|
|
|
|
Thanks for your reply.
Here is my file description.
SELECT POL-FILE ASSIGN TO POLFL
ACCESS IS SEQUENTIAL
ORGANIZATION IS INDEXED
RECORD KEY IS POL-RECORD-KEY
FILE STATUS IS WS-FL-STATUS.
FD POL-FILE.
01 POL-REC.
05 POL-RECORD-KEY PIC X(11).
05 FILLER PIC X(2000).
OPEN INPUT POL-FILE.
IF WS-FL-STATUS IS EQUAL TO '00' OR '97'
CONTINUE
ELSE
DISPLAY 'FILE OPEN ERROR FOR POL-FILE3'
DISPLAY 'ERROR STATUS : ' WS-FL-STATUS
CALL 'SYSABND'
END-IF.
READ POL-FILE INTO CLS-POL-RECORD.
(reading pol-file into copybook)
I got the following error when i submitted the job.
*** BAD READ ON POL-FILE,
FILE STATUS=92
CEE3250C The system or user abend U1111 R=NULL was issued. |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
Good start, but aren't done yet....
Quote: |
What kind of VSAM file were you trying to access? |
|
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
Hi,
You show:
Quote: |
DISPLAY 'FILE OPEN ERROR FOR POL-FILE3' |
when opening POL-FILE. Are you typing this code in the post or are you cut & pasting?
If you cut & paste we get the ACTUAL code in your pgm, not what you think is in your pgm. It's difficult to make judgement based on contradictory info.
Thanx for your consideration in this matter. |
|
Back to top |
|
|
Jeya Raj
New User
Joined: 14 Jan 2007 Posts: 33 Location: USA
|
|
|
|
Hi William,
After reading POL-FILE, passing the key to read another file which is having exactly the same structure as POL-FILE. Comparing these two files if that files match then write POL-REC into output file.
This is second file read
MOVE POL-RECORD-KEY TO POL1-RECORD-KEY.
READ POL1-FILE INTO CLS-POL1-RECORD.
IF CLS-POL-RECORD = CLS-POL1-RECORD
WRITE OUTPUT-FILE FROM CLS-POL-RECORD.
But I got the logic error (92) while reading the first file.
Thanks |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
Hi,
The last several times I "played" with logic errors during vsam reads, one was because I was trying to access by key an rrds and the other was beacuse the ksds and or catalog was bad.
If there is no reason for the program to fail, and it is, start looking to the KSDS file.... |
|
Back to top |
|
|
Jeya Raj
New User
Joined: 14 Jan 2007 Posts: 33 Location: USA
|
|
|
|
Thanks for youre quick reply. I'll look at the KSDS file |
|
Back to top |
|
|
Jeya Raj
New User
Joined: 14 Jan 2007 Posts: 33 Location: USA
|
|
|
|
Hi William,
You are correct. My KSDS was corrupted. I created new KSDS, now it is working good.
Thanks for your reply |
|
Back to top |
|
|
|