I am clear with creating the ISPF table as you suggested. Next step, How to do scroll functions in REXX with PF7 and PF8. I have searched so many forums and manual and couldnt able to find the exact code to handle scrolling functions.
in a properly designed ISPF application ( whatever the language ) the panel navigation is handled by ISPF dialog manager itself
no need to take any action in the code ( apart checking for the END/RETURN/CANCEL actions )
read the manuals about TABLES and SCROLLABLE FIELDS/AREAS