Handle Position to With Load All Subfile?

185 pts.
Tags:
RPG/400
RPG/400 Subfile
RPGLE
How to handle position to with load all subfiel?

(I know this concept  with single pg subfile)

Answer Wiki

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

Discuss This Question: 3  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
  • Vatchy
    Use the SFLRCDNBR keyword. SflRcdNbr
    1,410 pointsBadges:
    report
  • TomLiotta
    For the most part, there is no point to having a PositionTo with a LoadAll subfile. A LoadAll subfile shouldn't have enough rows to make a PositionTo useful. It should be faster and easier for the user just to scroll up or down a few times than to tab to a PositionTo field and then type positioning values correctly. A LoadAll subfile shouldn't have more than a couple hundred rows. If you really must have positioning, then you will either need to keep an array of positioning values in memory that you can search in order to calculate a SFLRCDNBR or READ the subfile with your program in order to find the SFLRCDNBR and then redisplay the subfile. Tom
    125,585 pointsBadges:
    report
  • philpl1jb
    Hi Sims121. As Vatchy and Tom mentioned you use the SFLRCDNBR to locate the cursor and in effect position to the page that includes that record. In the SFLCTL record add REC# 4S 0H SFLRCDNBR(CURSOR) Where REC# is the variable where you want the cursor. In your program, you must set the variable REC# value between 1 and the number of records currently in the subfile. This value must be set before you write or exfmt the control record or it will result in an error. Phil
    49,720 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