× 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.



James,

Maybe I’m wrong but, as I see it, the use of RRN for accessing a view,
particularly one that has a “where” clause is almost certainly to give
excluded records as result. The (V5R3) reference manual, under RRN states
that:

“If the argument identifies a view, common table expression, or derived
table, the function returns the relative record number of its base table. If
the argument identifies a view, common table expression, or derived table
derived from more than one base table, the function returns the relative
record number of the first table in the outer subselect of the view, common
table expression, or derived table.”

If I understand this paragraph correctly, if you use the RRN, the where
clause of your view has no effect…

Anyway, if you solve your problem please let us know, if only because some
of us hate “loose ends” :-).


Regards,
Luis Rodriguez
IBM Certified Systems Expert — eServer i5 iSeries


On Mon, May 3, 2010 at 9:24 PM, <jamesl@xxxxxxxxxxxxxxxxx> wrote:

Luis Rodriguez wrote:
James,

Right now I don't have access to an IBM i, so I can't check this but,
Does
the use of RRNs have any sense when accessing a view?

Remarkably, yes. There's a complaint in the joblog, but it works (aside
from bypassing the WHERE clause) nonetheless.

And unfortunately OPM RPG doesn't have *START on a SETLL, or anything else
equivalent, which complicates the matter of finding an OPM MI equivalent.
But I've got some things ready to try in the morning.

--
JHHL
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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.