Legal size output thru a printfile in a RPG program

0 pts.
Tags:
Application development
Printing
RPGLE
how to print legal size output from RPG programs.
ASKED: June 13, 2006  12:51 PM
UPDATED: June 14, 2006  9:40 AM

Answer Wiki

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

That is going to be more a function of the printer file you are using. There are PAGESIZE settings associated with each externally described printer file that, in conjunction with the LPI, CPI and OVERFLOW will allow you to print just about any size page imaginable. By default this is typically set to 66 lines, 6 lines to the inch (11 inch page) with overflow at line 60 allowing for a 1 inch margin at the bottom. The 132 characters across with 10 char to the inch will give you 13.2 inches across. You will need to change or create a printer file with settings equal to 8.5 x 14. To get the 8.5 across, 85 characters with 10 to the inch or 102 by 12, etc. To get the 14 inches top to bottom, 84 lines by 6 LPI, or 112 lines by 8 LPI, etc.
If you are using a default print file such as QPRINT, where other programs use the print file and you do not want to change their appearance, you can use the OVRPRTF command to change these settings within the scope of the job.
Additional tip: When playing with these settings, I often set the page rotation (PAGRTT) to 0.

Discuss This Question:  

 
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

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