I HAVE EXTERNALY DISCRIBE PRINTER FILE. I WANT TO WRITE 30 RECORDS IN ONE PAGE. I USED OFLIND KEY WORLD BUT PAGE BREAK NOT WORK. TWO HEADINGS ARE WRITE IN ONE PAGE PLEASE GIVE ANY ANSWER
It's most likely a logic error in how you wrote the code and when you are writing and checking for overflow. To get a more meaningful answer you will need to include the code so we can see what is wrong.
Personally, if I needed to limit the number of records per page, I use an in program counter to count the number of output lines per page.
Then, when we get over that amount, reprint the header record format that uses skip to skip to the first line of the new page.
I'm sure everyone has a different way of doing it. I know you can just check the overflow indicator before the write as well. I just like to control it myself.
TWO HEADINGS ARE WRITE IN ONE PAGE
What kind of printer? How do you define the HEADER record format -- does it include any skip-to-new-page definitions?
How are you determining that multiple headings appear on single pages? (It can look like that's happening if you look at the spooled file in an emulator session even though pages may print separately on an actual printer.)
Tom
Just use CHGPRTF or OVRPRTF and change the overflow line and page width to as per your records. that may be like 30 35, so whenever your 30 records printer it will again perform hearder output and it will print the header.
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!
Discuss This Question: 4  Replies