|
when you have RRN in the where clause of a statement.For reasons unknown, the query engine on the i will do a full table scan
2) I can get the RRN from the INFDS, but looking through the manuals,
Google and the archives I keep seeing that the maximum size of a 4 byte
binary (integer) field is 2,147,483,647 (i.e. 2.147 billion records).
In RPG400 I have to use the INFDS to get the RRN for the record, but is
2.147 billion still the maximum number of records I can have in a file
or can I have more?
We have an RPG400 program that reads through a JDE transaction file andlist
then returns consolidated data back to it's calling Java client. Each
time the program returns data to the Java client it remains open for the
next call and accepts a parameter that indicates where in the program it
needs to restart from.
Because of performance issues the call from Java was modified recently
so that instead of retrieving all transactions for a customer it now
retrieves blocks of 50 or so transactions.
This is now causing a further problem where multiple users are accessing
the same customers transaction list and the same Websphere connection is
used by both jobs in turn.
I need to modify the RPG program so that it positions the file back to
the last record read by the Java client regardless of whether the
program instance has been used by any other client.
I'm looking at using the RRN and passing this back to Java when I return
the data and then chaining with this when the program restarts and there
has been a change in client. I rarely use RRN processing, so this has
raised some questions:
1) If the logical file is defined as keyed in the program can I chain to
it using RRN or would I have to read the physical by RRN and then chain
to the logical using the key values picked up from the physical?
2) I can get the RRN from the INFDS, but looking through the manuals,
Google and the archives I keep seeing that the maximum size of a 4 byte
binary (integer) field is 2,147,483,647 (i.e. 2.147 billion records).
In RPG400 I have to use the INFDS to get the RRN for the record, but is
2.147 billion still the maximum number of records I can have in a file
or can I have more?
3) If the file can hold more than 2.147 billion records can I get the
RRN for these "additional" records within the RPG400 program or is the
larger RRN only available through the RECNO keyword in RPG IV?
Thanks in advance
Jonathan
_______________________________________________________
This message was sent using NOCC v1.14 webmail software
_______________________________________________________
--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.
As an Amazon Associate we earn from qualifying purchases.
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.