×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) 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.

This thread ...

Replies:

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

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.