AS400 Subfile rolling back to page one when page down pressed after *bottom displayed.

I have a subfile with 9999 as the sflsize and 21 as sflpage.  

I load all records into the subfile and display.  When the screen reaches the end of the data the *bottom is displayed correctly on the screen.  However, when page down is pressed again it restart the display a page 1.  

I don't want to load a page at a time in the program .... is there a setting that will keep it from restarting?

Thank You!
Lynn
lynn_harrisAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Gary PattersonVP Technology / Senior Consultant Commented:
Lynn,

This is something your program is doing, not something inherent in subfiles.  I suspect that when you hit page down at the end, you are falling back into your "reload" loop and reloading the subfile.

Run the program under debug, and I think it will probably be apparent what is happening.

If that doesn't work, post you code and dspf DDS.

- Gary
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
lynn_harrisAuthor Commented:
Hi Gary,

Yep, it is.  Fixed it.

Thanks,
Lynn
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Mainframe Languages

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.