Highest RRN in a Subfile

165 pts.
Tags:
AS/400
INFDS
RPG
RRN
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,

Answer Wiki

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

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

Discuss This Question: 5  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
  • TomLiotta
    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
    125,585 pointsBadges:
    report
  • Nickhutcheson
    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 pointsBadges:
    report
  • TomLiotta
    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
    125,585 pointsBadges:
    report
  • Nickhutcheson
    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 pointsBadges:
    report
  • TomLiotta
    Sorry I didn't answer appropriately the very first time. Phil's answer shook me into the right mode of thinking. Tom
    125,585 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