MAINFRAME - TIP OF THE DAY :
When you specified V for RECFM parameter, LRECL value is largest record in the file plus 4 bytes. These four bytes contain the actual length of each variable length record in the file
Programmers Voted for below topics. Please Vote for good Posts.
Thank You! for your feedback. Connecting to the server. Please Wait...
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
Cobol Tutorial This cobol tutorial covers most of the important topics like STRING, UNSTRING, COMP, COMP-3.....
DB2 Tutorial DB2 Tutorial focuses on DB2 COBOL Programming. Explains in simple language. Some Chapters are locked, Forum members have free access to these chapters
CICS Tutorial This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming...
JCL Tutorial This is most popular JCL tutorial from mainframegurukul. It does contain important jcl ....
SORT Tutorial This Tutorial covers all important aspects of DFSORT. Has more SORT examples