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

Retrieving the top subfile record for each subfile

I am writing a screen program where two subfiles are shown on the screen at the same time. I would like to retrieve the top subfile record for each subfile. I can get the lowest subfile record displayed for the subfile on the top part of the screen using the INFDS. Is there a way to get the lowest subfile record displayed for the subfile on the bottom part of the screen?


The only thing that I know to try is the DDS Keywords SFLRCDNBR(CURSOR *TOP) and SFLSCROLL on the lower subfile. This should allow you to do a write to both subfile controls and a read on the display file. The variable for SFLSCROLL will contain the top record number for the lower subfile.


This was last published in May 2001

Dig Deeper on iSeries ILE 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