Hi Everyone,
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-STATUS:9H
IMF-STATUS1:9
(70/85) Continue?
IMF-STATUS2:H
IMF-FILENO:08224
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.
Please suggest how to correct this, any thoughts?
Awaits responses!!
INVALID FILE NUMBER - Error code 72 while reading KSAM file
Moderators: dbzTHEdinosauer, Moderator Group
-
- Active Member
- Posts: 732
- Joined: Thu May 24, 2012 4:07 am
-
- Active Member
- Posts: 732
- Joined: Thu May 24, 2012 4:07 am
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.
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.
FREE TUTORIALS
Tutorials
Free tutorials from mainframegurukul
- JCL Tutorial
Covers all important JCL concepts. - Cobol Tutorial
This tutorials covers all Cobol Topics from STRING to COMP-3. - DB2 Tutorial
DB2 Tutorial focuses on DB2 COBOL Programming. - SORT Tutorial
This Tutorial covers all important aspects of DFSORT with examples - CICS Tutorial
This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions
- Cobol Interview Questions
50+ Interview Questions - JCL Interview Questions
50+ Interview Questions - DB2 Interview Questions
100+ Interview Questions - CICS Interview Questions
70+ Interview Questions - VSAM Interview Questions
27 Interview Questions
Other References
Mainframe Tools and others
- XPEDITER Reference
Explains how we can debug a program - FILEAID Reference
Explains how to browse , edit and delete datasets - Change Man Reference
Quick Start tutorial on Changeman - Abend Reference
Important Abend codes explained - FaceBook Page
MainframeGurukul FaceBook Page - LinkedIn Page
MainframeGurkul Linkedin Page