Can you provide us with additional info ? It looks like you are having issues with the subfile rollup/rolldown feature. A listing of your dds will help.
I’m sorry, I’m having serious difficulty understanding your discription of the issues.
1. Your program displayed a subfile
2. You selected an item
3. It displayed ?? another subfile???
4. Page-up and Page-down didn’t work
5. Then you got messages WORKSTATION ERROR 22,23 AND 41
These messages were your screen??? in your joblog???
What is the text of these messages? Could you do a dump.
Obviously, your display should return to your program when the page down is pressed and your program should load some more records in the subfile — make sure that you set the RRN properly when loading the records. If you have SFLRCDNBR keyword in the control then the variable must be set to a value between 1 and the # of records that are actually in your subfile.