Reserve Areas in List Reports
just wondering if someone can help me with this....
I am writing a report program which consists of two separate subroutine, each writing out a different list. Which list is run depends on the option selected by the user at the selection screen.
One of these lists requires a reserve area at the bottom of the screen in which I display my totals. The other does not.
Can anybody tell me how I go about doing this. I had declared a reserve area in my REPORT statement but obviously this effects both reports. It's my 13th hour here and I am going a littl
Thanks
See the Online docu on keyword RESERVE. This is used for dynamically specifying the number of lines to be reserved for reports. This is called from within the TOP-OF-PAGE or from the list-processing routines. Let me know if you need any additional help on this.
Thanks,
Chaps.
_________________
"Skill is fine, and genius is splendid, but right contacts are more valuable than either. "
--Archibald McIndoe
Thanks for that Already had a go with that (sorry, should have mentioned in my earlier post).
Will have another try but may be back.
Thanks for the help.
Dear Chaps:
RESERVE has nothing to do with TOP-OF-PAGE.
Dear KayTi:
You may want to look into the END-OF-PAGE, but watch out with NEW-PAGE commands. It is probably best to just add the totals to the list wherever you need them. Keep in mind that list and screen are two different things (you mentioned both).
Regards,
Wolfgang
Kayti,
If I understand your problem you have in your report definition someting like LINE-COUNT 65(4). where 65 is the no of lines & 4 is the reserve area. This would apply globally i.e. both the reports.
To have the reserve are apply to only one report.
I would have a form to print lines from the report with reserve area & have a RESERVE 4 lines statement before the WRITE statement. This way when the end of page is reached END-OF-PAGE event will allow you to output the totals.
I hope it helps.