Posted: Tue Nov 07, 2006 4:42 pm Post subject: File STatus 41
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?????????
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. _________________ Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum