15 pts.
 How to fetch data from physical file using RRN value of a record ?
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 ?

Software/Hardware used:
ASKED: March 13, 2008  12:48 PM
UPDATED: January 31, 2012  3:26 PM

Answer Wiki:
On the F specification for the file don't use 'K' for <a href="http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/books_web/c0925086288.htm#HDRF34">record access type</a>. The default is to use relative record numbers. Bruce Vining
Last Wiki Answer Submitted:  March 13, 2008  2:09 pm  by  bvining   6,055 pts.
All Answer Wiki Contributors:  bvining   6,055 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

hey if u do like this never compile program. u face error at compile time. Plz don’t share wrong answer…………………..

 20 pts.

 

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,740 pts.

 

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

 108,360 pts.

 

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,505 pts.