Hard to say.  I found following description for num_records at InfoCenter:

Number of records in the member at open time. For a join logical file, the
number of records in the primary. Supplied only if the file is being opened
for input.


I guess key words are "at open time".  I suspect that's true for all modes
where you only do output (_Rwrite) prior to calling _Ropnfbk.
What I'm confused about is why would then your workaround work...

Also, I'm not sure what last comment really means ("only ... for input").

IBM could definitely improve on descriptions of this value and open feedback
area in general.

PMR time? :(

-----Original Message-----
Subject: Re: [C400-L] _Ropnfbk num_records

I found a workaround. After _Rlocate() to __LAST, ->rrn = 2, the
expected number of records. I just wonder why _Ropnfbk returns bogus

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.