× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hey all,

I'm doing an SQLRPGLE select - left outer join on two files and
fetching 13 records at a time to fill a subfile page.

the join has the possibility to have left side records without right
side records, and I'm taking that into account ( - alwnull(*usrctl)
and checking the null indicators of records fetched ).

my problem is that I need to know how many records I fetched so I know
when i'm at EOF.

I've always used SQLER3 to tell me this, but it's not working now.

The first fetch I do, my data structure has 13 records in it, and they
are the records I expected to get, but SQLER3 has 7 in it.

coincidently, record 8 is the first record with nulls in the right
side file fields.

what gives?  It fetched 13 records, but SQLER3 tells me only 7 were fetched.

Any help would be appreciated.

Rick


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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

This mailing list archive is Copyright 1997-2024 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.