×
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.
Hi Daryl,
To add to Scott's comments, as you are accessing the file in key order,
taking the RRN you have received & navigating to that record using
DSPPFM, does the record so located look like the record accessed in your
program?
Regards,
Kevin Wright
Developer, LPC
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Scott Klement
Sent: Tuesday, 20 November 2012 10:40 AM
To: RPG programming on the IBM i / System i
Subject: Re: How can I retrieve the RRN of a record in a PF in a RPG3?
Darryl,
FRCRATIO is for writing records, not reading them. I think you're
looking for OVRDBF SEQONLY(*YES 1) -- this says that the program reads
sequentially only, and the 1 means that the blocking size is 1 record
per block.
-SK
On 11/19/2012 5:37 PM, Darryl Freinkel wrote:
Some feedback.
1. The test program works normally/correctly when converted to
ILE.
2. I need the K in the F spec as I need it to work in an
existing
program which is keyed and has to remain.
3. I tried OVRDBF FRCRATIO(*NONE)
4. I also tried FRCRATIO(1)
5. On the first read, it populates a value that may be the total
number of records in the file. It's a moving target, so I cannot
establish the exact number, but it's close.
--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing
list 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.