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

Error code '92'(logic errer) when i read the VSAM file seq


IBM Mainframe Forums -> ABENDS & Debugging
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Jeya Raj

New User


Joined: 14 Jan 2007
Posts: 33
Location: USA

PostPosted: Sun Feb 11, 2007 4:02 am
Reply with quote

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

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Sun Feb 11, 2007 4:15 am
Reply with quote

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.... icon_confused.gif
Back to top
View user's profile Send private message
Jeya Raj

New User


Joined: 14 Jan 2007
Posts: 33
Location: USA

PostPosted: Sun Feb 11, 2007 9:31 am
Reply with quote

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

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Sun Feb 11, 2007 2:50 pm
Reply with quote

Good start, but aren't done yet....
Quote:
What kind of VSAM file were you trying to access?
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sun Feb 11, 2007 11:06 pm
Reply with quote

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

New User


Joined: 14 Jan 2007
Posts: 33
Location: USA

PostPosted: Mon Feb 12, 2007 1:54 am
Reply with quote

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

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Mon Feb 12, 2007 2:08 am
Reply with quote

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

New User


Joined: 14 Jan 2007
Posts: 33
Location: USA

PostPosted: Mon Feb 12, 2007 3:12 am
Reply with quote

Thanks for youre quick reply. I'll look at the KSDS file
Back to top
View user's profile Send private message
Jeya Raj

New User


Joined: 14 Jan 2007
Posts: 33
Location: USA

PostPosted: Wed Feb 14, 2007 4:47 am
Reply with quote

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
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 -> ABENDS & Debugging

 


Similar Topics
Topic Forum Replies
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 Error to read log with rexx CLIST & REXX 11
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top