165 pts.
 Highest RRN in a Subfile
Does anyone have the positions for the highest RRN on a Subfile? This was found in the old CPF programmer’s guide a hundred years ago. It was right after the Lowest RRN currently displayed on the subfile. This info comes from the INFDS.

Are there examples?

 



Software/Hardware used:
as400, rpg,
ASKED: October 21, 2010  6:54 PM
UPDATED: December 25, 2011  6:59 PM

Answer Wiki:
Right, This looks like it. sfl_RRN 376 377 I 0 Min_RRN 378 379 I 0 Num_RCDS 389 381 I 0 <-- that's it http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508378.htm Phil
Last Wiki Answer Submitted:  October 22, 2010  1:28 am  by  philpl1jb   44,190 pts.
All Answer Wiki Contributors:  philpl1jb   44,190 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


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


 

Yes, that’s correct. But it depends on what you’re counting. See I/O feedback area for ICF and display files. It’s at offset 13, positions 14-15. I’m probably getting too used to direct access.

Tom

 108,175 pts.

 

Num_RCDS 389 381 I 0
I don’t think the starting position would be more than the end. Seems like it was 399 – 400 Binary 0.

Nick

 165 pts.

 

What you’re looking for is in the Info Center. See the File Information Data Structure section of the ILE RPG Reference manual. (The link is for the section of the page, but it seems to resolve to the top of the page. You need to click the ‘Device Specific Feedback’ link and scroll to the end to the display-device part or click the ‘Get Attributes Feedback’ link and scroll back one screen; or simply scroll down until you see what you want — Figure 32. Example of Coding an INFDS with Display Specific Feedback Information.)

D NUM_RCDS              380    381I 0

Looks like a simple typo — ’9′ in place of ’0′.

Tom

 108,175 pts.

 

Tom,
That is it. It works. Either it was changed from years ago (I still think 399- 400) or I’m having flashbacks. I had programmed alot years ago and have found myself back in the heads down arena. I have trouble remembering how some things work and where to find the answers. Glad, at least, I have found who to ask. Thanks everyone.
Nick

 165 pts.

 

Sorry I didn’t answer appropriately the very first time. Phil’s answer shook me into the right mode of thinking.

Tom

 108,175 pts.