The relevant diagnostic documentation for debugging C library I/O routine errors is "Language Environment Debugging Guide" and "Debuggin I/O programs" in the C/C++ Programming Guide.
>From the LE Debugging Guide, under "Using the __amrc and __amrc2 structures....": It appears that the C library fopen routine failed while issuing a TESTCB macro (last_op=111). The TESTCB RC/Ftncd/FDBK is FE/00/00, which doesn't make sense to me. My assumption is that you are correct and fopen() doesn't support VRRDS, since there is no documented support in the manuals that I can see. Best to open an ETR with IBM z/OS Language Environment Kirk Wolf Dovetailed Technologies http://dovetail.com On Thu, Jul 28, 2016 at 5:09 AM, Steve Austin <[email protected]> wrote: > EDC5041I An error was detected at the system level when opening a file.; > errno=41 errno2=0xc00a0022 last_op=111 errorCode=0xfe0000 > > I get the above error when using JZOS to open a VSAM VRRDS dataset; the > same code works for KSDS and RRDS files. > > String options = "rb+,type=record"; > ZFile zfile = new ZFile("//'" + fileName + "'", options); > > I believe the error is from the C/C++ library fopen() routine, but the > errno2 value is undocumented; > http://www-01.ibm.com/support/knowledgecenter/SSLTBW_2.1.0/com.ibm.zos.v2r1.ceea900/llerr2.htm > > Does fopen() support VSAM VRRDS files? Any idea what the errno2 value > means? > > Thanks > > Steve > > -- > This e-mail message has been scanned and cleared by Google Message Security > and the UNICOM Global security systems. This message is for the named > person's use only. If you receive this message in error, please delete it > and notify the sender. > > ---------------------------------------------------------------------- > 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
