ILE RPGLE

20 pts.
Tags:
ILE RPG
RPG ILE
RPG Records
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

Thanks. We'll let you know when a new response is added.

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

Discuss This Question: 4  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • ElTerrifico
    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.
    620 pointsBadges:
    report
  • Dcantwell
    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 pointsBadges:
    report
  • TomLiotta
    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
    125,585 pointsBadges:
    report
  • Kathan
    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 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following