× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Maricar,

Here is the COBOL manual's description of file status 46.

"A sequential READ statement was attempted on a file open in the input or
I-O mode and no valid next record had been established because the preceding
START statement was unsuccessful, or the preceding READ statement was
unsuccessful or caused an at end condition."

When you're reading your sequential file, you should get a file status of
'10' when you hit end-of-file. A quick way to get file status 46 is to do
another sequential READ after you've reached end-of-file.

Hope this helps!
Richard Casey

-----Original Message-----
From: cobol400-l-admin@midrange.com
[mailto:cobol400-l-admin@midrange.com]On Behalf Of c2c2y@pacific.net.sg
Sent: Wednesday, October 09, 2002 10:51 AM
To: COBOL400-L@midrange.com
Subject: How to avoid file status 46 in SQLCBLLE

I declare my file as sequential and open input and it's giving me file
status 46 during read, it does not give me an end of file condition and
just continue looping withou retrieving next record. How do i solve this
problem, pls help.

thanks a lot.
maricar



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.