20 pts.
 ILE RPGLE
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

 

BEST REGARDS,

NADEE.



Software/Hardware used:
ILE RPGLE
ASKED: February 1, 2010  9:54 AM
UPDATED: May 19, 2010  11:27 AM

Answer Wiki:
First guess, as Tom said, is that your Header record should begin wth the keword SKIPB(1) . The number with the SKIPB is the line# that it should advance to .. like the first line of the next page, provided you are past the first line of the page when it is issued. Phil
Last Wiki Answer Submitted:  February 2, 2010  2:40 am  by  philpl1jb   44,220 pts.
All Answer Wiki Contributors:  philpl1jb   44,220 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

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.

 605 pts.

 

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.

 465 pts.

 

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

 108,330 pts.

 

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.

 70 pts.