GENERIC is definitely the culprit. It uses it for a keyed read only. Hence it works for a non-specified key.
However, this code functions properly on MicroFocus. -----Original Message----- From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of Norbert Friemel Sent: Thursday, August 01, 2013 8:52 AM To: [email protected] Subject: Re: VSAM Status Code 16/24 on READPREV On Thu, 1 Aug 2013 15:25:55 +0000, John Weber wrote: >All, > >We are receiving a status code 16/24 while performing a KSDS VSAM 'READPREV'. > >This exception only occurs when the key is specified but does not occur if it >is not entered through our UI. > >References point to it having MicroFocus origins, but we are running this on >the mainframe under CICS. > >Any direction as to where to look next would be much appreciated. > 16 = INVREQ 24 = "A READPREV command is issued for a file for which the previous STARTBR or RESETBR command has the GENERIC option." http://pic.dhe.ibm.com/infocenter/cicsts/v4r2/index.jsp?topic=%2Fcom.ibm.cics.ts.applicationprogramming.doc%2Fcommands%2Fdfhp4_readprev.html Norbert Friemel ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
