printer file in rpgle

895 pts.
Tags:
AS/400 Printer File
AS/400 printing
RPGLE
I've program described printer file..

how to code page break for program described printer file??



Software/Hardware used:
AS400

Answer Wiki

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

On you ‘F’ spec for the printer use the keyword OFLIND.
Most people code it as OFLIND(*INOF)
Then in your calc specs, before you output to the printer, do a check if *INOF is on.
If yes, do heading, and set off the indicator.

Discuss This Question: 6  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
  • Nutangujar
    Thanks ..this prints the heading but to start this heading on a new page, what exactly is the condition...i think when the overflow indicator is on it should automatically start printing on the next page..but when i actually took the print outs to check this....it printed all those headings on the same page..
    895 pointsBadges:
    report
  • Nutangujar
    actually i need to print record on next page when new employee number starts.... for this when i retrieve new employee number in the list, i switch on overflow indicator inOA and print the header...is this not sufficient to insert a page break between two diffrent employees print listing???
    895 pointsBadges:
    report
  • CharlieBrowne
    Check your skip before setting in your ourpur spec. If you are getting two headings on the same page, you probably are using space before and not skip before.
    41,430 pointsBadges:
    report
  • Nutangujar
    I have Skip before line as below in the program OQSYSPRT E OA HDR2 1 the one indicates no. of skip before lines.....I set on OA indicator before I Except this line.....stil the header is printed on the same page and not next page..
    895 pointsBadges:
    report
  • Nutangujar
    Instead of OA I used normal indicator 61 and it works... Thanks... Nutan.
    895 pointsBadges:
    report
  • WoodEngineer
    Nutan, Check how your program sets *IN61. The system will respond to indicators OA and 61 the same way, based on their settings. We have programs that use OA and OF to control advancing to a new page. Using a "normal" indicator is not what made your program work as you wish - it is the setting of *IN61.
    6,875 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