Ask the user.
There is no supplied method to determine anything about which pages of a load-all subfile have been viewed. The system doesn't keep track of the series of page views, and your program receives no information about what the user is doing until the <Enter> or other AID-generating key is pressed.
That's part of the purpose of a load-all subfile. All of the work of page navigation is handled outside of your program. If you need to know that each page has been viewed, then use either page-at-a-time or extendable subfiles.
Technically, I suppose you <i>could</i> do something like enabling STRCPYSCN to an *OUTFILE and then process the outfile to see if every page is captured... but that seems to be a long way to go when the other two subfile types are available.
Tom
if you know the number of records that are loaded, and the number of records that are displayed, you could count the number of times the PAGE/ROLL key is pressed.
this can give you the number of records displayed the terminal, but it can't guarantee that the user actually looks at them.
-Sarge
Last Wiki Answer Submitted: September 3, 2010 2:34 pm by TomLiotta108,005 pts.
All Answer Wiki Contributors: TomLiotta108,005 pts.
If you live outside the United States, by submitting your email address you consent to having your personal data transferred to and processed in the United States.
You could use sflcsrrrn to capture the Subfile position of the cursor when the user exited the screen .. provided that the cursor is pointing at a subfile record and they returned while viewing the last page .. not much of a control. Better use a page-at-a-time SF then you know where they are.
Phil
…you could count the number of times the PAGE/ROLL key is pressed.
A load-all subfile doesn’t report the scroll keys, so there’s nothing to count. Your program isn’t called, so you can’t execute any “counting” instructions. That’s a big part of what load-all subfiles are all about — your program isn’t involved in scrolling.
You could use sflcsrrrn to capture the Subfile position of the cursor when the user exited the screen .. provided that the cursor is pointing at a subfile record and they returned while viewing the last page .. not much of a control. Better use a page-at-a-time SF then you know where they are.
Phil
…you could count the number of times the PAGE/ROLL key is pressed.
A load-all subfile doesn’t report the scroll keys, so there’s nothing to count. Your program isn’t called, so you can’t execute any “counting” instructions. That’s a big part of what load-all subfiles are all about — your program isn’t involved in scrolling.
Tom