I am using Natural to print reports for the first time and not getting the trailer at the bottom of the page as expected. I am attaching the program. Please have a look and reply if you see something fishy in the code.
program.txt (2.04 KB)
The only thing that I see fishy is the NEWPAGE statement. It should be inside your loop either before or after your write statement.
Otherwise, perhaps the footer is being printed off of the page, though since your page size is 30, that doesn’t seem possible.
From the Natural manual:
Considering Logical Page Size
As the end-of-page condition is checked only after an entire DISPLAY or WRITE statement has been processed, it may occur that the logical page size (that is, the number of lines output by a DISPLAY or WRITE statement) causes the physical size of the output page to be exceeded before the WRITE TRAILER statement is executed.
To ensure that a page trailer actually appears at the bottom of a physical page, you should set the logical page size (with the PS session parameter) to a value less than the physical page size.