Q
Problem solve Get help with specific problems with your technologies, process and projects.

Alternative to using page down to display listings

We have an RPG interactive subfile program that displays a list of items. The user must page down many times to find the line they are looking for. Is there a relatively easy way for the user to press a command key, which would display a window prompting them for a search argument and then scanning through the subfile looking for the search argument and then displaying the page on which it is located? We can handle the command key and search argument window; it is the subfile scan processing code that escapes us.

If the subfile is small, you can use a chain by relative record number to read through the subfile. Once you find the matching criteria, you can put the relative record number into the relative record number field in the INFDS. This will position the page to contain the record you found. The relative record number field for the RRN at the top of the page is located at: 378 to 379 and is a binary field (numeric with no sign).

==================================
MORE INFORMATION ON THIS TOPIC
==================================

The Best Web Links: tips, tutorials and more.

Ask your programming questions--or help out your peers by answering them--in our live discussion forums.

Ask the Experts yourself: Our application development gurus are waiting to answer your programming questions.


This was last published in November 2003

Dig Deeper on RPG iSeries programming

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchDataCenter

Close