I agree on a lack of concise documentation in this area.
In fact, I didn't know about buf_length, probably because it's not
documented :), and accordingly have never used it. If accurate, it ought to
perform better than the alternative I suggested.
I think you should consult IBM if you could rely on it in your case (PMR).
Or simply have them document it better.
Celebrating 11-Years of SQL Performance Excellence on IBM i, i5/OS and
Subject: Re: [C400-L] Question about _Rreadn C function
Looks like it is also in _RFILE.buf_length.
I'll use that one, otherwise I have to figure out how to get/use the
feedback info. <grin>
I've got those two manuals open, but IMHO they are not organized real
well. In fact, I did find a description of _RFILE and _RIOFB_T. But
the description only cover a few of the subfields not all of them. In
particular, _RFILE.buf_len is not mentioned.
On Wed, Sep 24, 2008 at 12:26 PM, Elvis Budimlic
(_Ropnfbk(openFile))->pgm_record_len will give you the record length for
_RFILE * open file handle (pOpenFile in my example).
As for more info, check out the following manuals:
"ILE C/C++ Run-Time Library Functions"
"ILE C/C++ Programmer's Guide" -- for some reason IBM puts it under
Websphere Development Studio category
There are other manuals I use, but these should suffice I think.