How to fetch data from physical file using RRN value of a record?

15 pts.
Tags:
CHAIN
RPG
RRN
I want to fetch / read a record with given RRN value in RPG. How to read a record for which only RRN value is given, in RPG?

Answer Wiki

Thanks. We'll let you know when a new response is added.

On the F specification for the file don’t use ‘K’ for record access type. The default is to use relative record numbers.

Bruce Vining

Discuss This Question: 4  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Pravs
    hey if u do like this never compile program. u face error at compile time. Plz don't share wrong answer.......................
    20 pointsBadges:
    report
  • pdsathishkumar
    what you like to do... it possible in subfile only... if you want do this in simple read operation if you want to read particular record without using key field, just you can the recno keyword in F spec.....
    3,790 pointsBadges:
    report
  • TomLiotta
    Plz don’t share wrong answer… The answer is correct. If you have a problem compiling, open a question about it to get help. Tom
    125,585 pointsBadges:
    report
  • Yorkshireman
    A glance at the RPG Manua answers the question. Slightly quicker than logging in here in fact. (An excellent read for any developer) .l
    5,580 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following