The indicator with SFLEND doesn’t cause it to display/not display but rather changes what it displays on the last page of the currently loaded subfile.
In the old days, this would be the indicator for EOF of the file (not the subfile) being loaded.
If the indicator is on (and refered to without the ‘N’) — ‘More…’ appears until you page down to the last page of the subfile then ‘Bottom’ is shown.
If the indicator *off then ‘MORE…’ is shown as you pagedown including the last page, since it’s assumed that your program will load more on demand, not your case at all.
In your case, it sounds like you don’t want the words MORE… or BOTTOM. If that’s the case don’t use SFLEND.
*in90 is coming from your program .. when/if you’ve loaded all lines of detail turn it on.
The last page of the subfile will now read ‘BOTTOM’.
I’m reaching here, cause this always works … until now
90 could be turned off in the control record by some other use — not likely.
wrong version??? remember to enddbg.
Recompile the display before the rpg
If you use PAGEDOWN (ROLLUP) it should be N90 so that at the eof pagedown won’t return to the pgm.
Great the code helps???
Sorry – by version, I meant the version of your code — this has worked since the time of Moses.
The only thing I see that I’m not so sure about is:
C write sf1ctl
C exfmt detail
For a hoot .. just to see what’s happening try:
C Exfmt sf1ctl
C*** exfmt detail
This won’t solve your problem but it should show what’s happening.
I’m not sure about
Drollup c const(X’F5′)
Since you don’t have a rollup???
But this logic would have a problem if there were 25 details — the flag goes on on the 26th read.
Should you turn SFL_END on???
as in D SFL_End 90 90N
You got it —
you must turn on position 90 in the Indicators DS which is not indicator 90.
Now to deal with the extra read that you need — to set more… correctly when you have 24 records
put your intial read just after the SETLL and a secondary read at the bottom of the load loop
after the load loap eval sfl_end = *in90
The other oddity you will want to take care of is to make the sflsiz = multiple of the sflpage
say 8 and 24 not 8 and 25. So you load 3 pages at a time and then come back for more…that’s where you’ll need the rollup/pagedown .. with the 90 .. so you’ll know that the user wants to load more.
However, depending on your expectations, this is all simplier doing a load all up front.
Oh yea .. I’m older than you.