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: Mon Feb 15, 2016 1:19 pm Post subject: INVALID FILE NUMBER - Error code 72 while reading KSAM file
I am facing INVALID FILE NUMBER error no. 72 with STATUS 9H while using CKREADBYKEY for KSAM file. File is opened properly with STATUS = 0 and file number(00015) is correct at the time of open but when control is coming to READBYKEY its changing FILE NUMBER(08224) somehow and failing there showing READ ERROR like below -:
IMF READ ERROR 0072
IMF STATUS 9H
Also below is the syntax coded for CKREADBYKEY -
CALL "CKREADBYKEY" USING IMF-FILETABLE, IMF-STATUS,
IMF-REC, IMF-NOM-KEY, IMF-KEYLOC, IMF-RECLEN.
Well, HP do not make Mainframes. IBM does. KSAM might be "nothing but indexed" but I don't know anything about it. Plus only you can see the code in it.
Apart from a pornographic spammer and myself, there is no-one active on this site. So contact your site support (if you have such a thing), colleagues, HP technical support, or find a forum for HP COBOL with KSAM or even just get down and work it out yourself.
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