Page 1 of 1
File STatus 41
Posted: Tue Nov 07, 2006 4:42 pm
Whiile trying to open a file I am getting the file status of 41. File status 41 tells that 'trying to open a file which is already opened', but I am opening the file for the first time. And the file is a flat file. Any thoughts about this?????????
Posted: Tue Nov 07, 2006 6:32 pm
the same answer you received in the other forum where you posted this question (and did not answer or say thanks after a solution was provided):
you only receive a file status 41 'WHEN YOUR PROGRAM ATTEMPTS TO OPEN A FILE WHICH IS ALREADY OPEN'. Your program, as suggested in the other forum, is somehow looping. find the logic failure. suggest using displays. Do you maintain counts in your program? see how many records where read. Do you have a routine to handle End of File? Does it close the file? Obviously your program did not CLOSE the file. Short of looking at your program logic (which I won't do), don't have any other suggestions beyond using displays if you don't have access to a Step-thru Debugger like Intertest or xpeditor.
Posted: Sun Dec 08, 2013 12:01 am
Just check you might have opened the file in INPUT mode. Could be a copy paste issue.
Posted: Sun Dec 08, 2013 10:27 am
Please notice this topic has been dormant for more than 7 years?
It is best to reply to currently active topics
Topic deleted by Admin
Posted: Tue Jan 19, 2016 7:47 pm
<< Content deleted By Admin >>