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 Jun 01, 2010 6:36 pm Post subject: VSAM Status 46
I am getting a 46 on a VSAM file. I am VERY puzzled by this because I believe that I have coded so that this is not possible.
The program reads an input to get the keys to read the vsam file. It is reading the AIX.
VSAM status 46 means that no valid next record condion exists because:
1. The prior read resulted in an end-of-file
2. The previous read was not successful.
I don't think either of these apply because. If I get an EOF, the code will go read the next input record and re-do a start and read from there.
If the previous read is unsuccessful, the program abends.
This file is open for I/O in the CICS region. I kind of suspect that has something to do with it, but I am at a complete loss as to how this can happen. The program has been running without incdent for some time and this has only cropped up recently, but the last week has pushed this program into running during the time CICS is up.
Joined: 09 Aug 2008 Posts: 1625 Location: Mumbai, India
Posted: Thu Jun 10, 2010 1:32 pm Post subject:
If the VSAM is being used by your application it will not be available for "batch process" for sure. Showing your code which you suspect is not functioing corrct might help to get better solution. _________________ Regards,
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