Return control to program in self-expanding subfile

pts.
Tags:
RPGLE
Subfile
Subfile Control
How to return the control to the program in self expanding subfile while pressing page up?

Answer Wiki

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

By “self-expanding” do you mean a “self-extending” subfile? If so then this type of subfile only returns control to the program when it tries to read past the end of the subfile at which point it will add data to the end of the subfile, thus extending it.

When Page Up is pressed the system knows that the data is already there and that there isn’t anything before the first record so it handles the paging itself. Why do you want to return control to the program?

Discuss This Question: 2  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
    how to return the control to the program in self expanding subfile while pressing page up Why would you want to? Perhaps if you had responded with a description of the business problem you are trying to solve, an appropriate (alternative) solution could be offered. Sometimes, the way a question is asked will restrict possible answers. Tom
    125,585 pointsBadges:
    report
  • Vatchy
    The only way to do that is to create your subfile with SFLSIZ = SFLPAG. That way control will return to your program for both page-up and page-down.
    1,410 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