|
|
| Author |
Message |
mainframesguru
New User
Joined: 24 Jun 2005 Posts: 38 Location: Hyderabad
|
|
|
|
Hi All,
I encountered a peculiar scenario in production.
A program tried reading a record randomly (KSDS file)
and it abended with 'Record not found - File status 23'.
But the record is present in the file.
When the job was rerun, without making any changes to data,
job ran successfully.
This issue occurs rarely, but certainly it require a fix.
Can anyone share their thoughts on it?
Please note, that it is a daily executed job.
Regards
Vamshi |
|
| Back to top |
|
 |
References
|
|
 |
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 1199 Location: At my desk
|
|
|
|
| Was the dataset open to another region, such as a CICS? |
|
| Back to top |
|
 |
mainframesguru
New User
Joined: 24 Jun 2005 Posts: 38 Location: Hyderabad
|
|
|
|
Dataset was NOT open to other regions.
It was Closed Disabled in CICS region.
Regards
vamshi |
|
| Back to top |
|
 |
Cristopher
New User
Joined: 31 Jul 2008 Posts: 36 Location: NY
|
|
|
|
Hi,
Did u check the timestamp ( if present in the file).
Probably it was written after the read was performed.
Cris |
|
| Back to top |
|
 |
mainframesguru
New User
Joined: 24 Jun 2005 Posts: 38 Location: Hyderabad
|
|
|
|
Hi Cristopher,
The file is opened in INPUT mode only, and the record exists
from long time, i.e not added in that batch.
I am making a wild guess, Does CPU % not available during
that read, could cause such abend? |
|
| Back to top |
|
 |
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 1199 Location: At my desk
|
|
|
|
| mainframesguru wrote: |
| I am making a wild guess, Does CPU % not available during that read, could cause such abend? |
No way....  |
|
| Back to top |
|
 |
dick scherrer
Global Moderator
Joined: 23 Nov 2006 Posts: 8629 Location: 221 B Baker St
|
|
|
|
Hello,
Most likely, there is a problem in the code. Some variable is not properly initialized or set to some current proper value.
Is the "not found" always the same record? |
|
| Back to top |
|
 |
mainframesguru
New User
Joined: 24 Jun 2005 Posts: 38 Location: Hyderabad
|
|
|
|
Hi Dick,
No. It is not always the same record.
And if the problem is with logic, then rerunning the same job, without any changes, would have caused the abend again...isn't it? |
|
| Back to top |
|
 |
eHorizon.Andrew
New User
Joined: 18 Jan 2007 Posts: 25 Location: China,zhejiang,hangzhou
|
|
|
|
| is that file only used by your program? only reading action?... |
|
| Back to top |
|
 |
mainframesguru
New User
Joined: 24 Jun 2005 Posts: 38 Location: Hyderabad
|
|
|
|
Hi,
It is used by other programs/Jobs also. |
|
| Back to top |
|
 |
enrico-sorichetti
Global Moderator
Joined: 14 Mar 2007 Posts: 3070 Location: italy
|
|
|
|
when you get a no record found issue a message followed by an abend,
look at the dump for storage overlays or unfriendly patterns |
|
| Back to top |
|
 |
dbzTHEdinosauer
Senior Member
Joined: 20 Oct 2006 Posts: 1618 Location: germany
|
|
|
|
| Quote: |
And if the problem is with logic, then rerunning the same job, without any changes, would have caused the abend again...(sic)isn't it?
|
well, you have convinced yourself that something is wrong with the operating system
or that a program will run differently when it receives fewer time slices than when there is little running in the system.
your manager is responsible for teaching you good debuging techniques and helping you to change your perspective.
we can only tell you what is probably wrong.
Dick Scherrer has provided you with the probable course of actiion to take -
debug you program and stop looking for reasons outside of the code as the problem - i.e. stop making assumptions.
your attitude, which is prevalent among most coders/programmers,
is the reason that consultants have opportunities for work. We don't make assumptions. |
|
| Back to top |
|
 |
mainframesguru
New User
Joined: 24 Jun 2005 Posts: 38 Location: Hyderabad
|
|
|
|
Hi
Thanks for your kind advice.
As you said, logically speaking, if there is a problem with the code,
Then even if we execute the program 1000 times with same data,
the output should never vary.
But in this case, when we encounter the 'Random Read Error' and
reran the job again, it went fine. I hope you got the point.
I would check the suggestion provided by enrico sorichetti and Dick.
I would have been happy, if you had a point for resolution. |
|
| Back to top |
|
 |
Anuj D.
Global Moderator
Joined: 22 Apr 2006 Posts: 2146 Location: Phoenix, AZ
|
|
|
|
Hi,
Please post he SYSDUMP & SYSOUT of abended JOB if possible. |
|
| Back to top |
|
 |
dbzTHEdinosauer
Senior Member
Joined: 20 Oct 2006 Posts: 1618 Location: germany
|
|
|
|
| Quote: |
I would have been happy, if you had a point for resolution
|
we(I) did, proof your code, all the code, instruction by instruction. |
|
| Back to top |
|
 |
|
|