what kind of coding is used to make the report? Getting a footer on it is not so much a question of what you print (the definition you showed will do fine), but how you do it that makes it a footer.
In a traditional mainframe COBOL environment, you can have a definition with a CCC character in the first (extra) byte of your record.
Then you write:
MOVE 'C' TO CCC.
WRITE FOOTER-LINE AFTER POSITIONING CCC.
If you count the lines on each page you write and if you know how many lines fit on one page, you just write your last line after XX lines, where XX is the last line of your page minus the curent line + 1.
I am just trying to learn Cobol programming and I have a question. I created a "customer report list" that should display a list of items. It worked fine, then I added my headers & footers and now I can't get the data (list of items) to display anymore. Any tips or hints as to what may be causing this....I didn't change anything except add the header & footer & detail lines.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.