Good News Everybody!
The new search engine is LIVE!
Please report any problems to david (at) midrange.com.
|
It's a long story of generated RPG code on S/38 that could return
the RRN, then being emulated by generated C & SQL (including
emulating an RRN!) on OS/2, then Windows, then being ported back
to iSeries and using "real" RRNs, then for performance reasons,
where possible being re-coded using the _Rxxxx native I/O APIs.
Unfortunately we now support I/O to files that cannot be accessed
via native I/O (containing CLOBs & BLOBs etc), so that we are
left needing to find out what the RRN of the just INSERTed record
is.
The short answer is no, we need the RRN.
Dennis Lovelady wrote:
Kevin Wright wrote:
When an RPG WRITE or a C _RWrite is performed, the relative
record number of the record just inserted is available in
file i/o feedback areas accessible to the RPG and C
programmer. When an SQLCLI INSERT is performed we are not aware of a way to retrieve the relative record number of the
record just inserted, except by reading (SELECTing and
SQLFetching) it immediately. Need I say that this doesn't
perform very well?
Since SQL doesn't really have a concept of record number, I
doubt that you're going to find a better-performing answer.
But if I may be so bold, why do you need this? Can the RR#
be replaced by a sequence and work as well for your needs?
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2026 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.