Program-described Printer file in RPG ILE

pts.
Tags:
AS/400
Printing
RPGLE
1. Why can't I view all the columns in my report from my spoolfile? 2. Is there any way to view all columns in my report as defined in the RPG ILE program with the printer file being program-described? Inputs: -when I ran the report, only up to 132 columns can be viewed from my spoolfile. -This is how I declared my print file(program-described): .....FFilenameIPEAF....RlenLK1AIOvKlocEDevice+... FQSYSPRT O F 198 OF PRINTER I'd appreciate your help. Thanks

Answer Wiki

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

Hi Shadow400

Your problem is that you are using QSYSPRT as the printer file name in your RPGLE program. Because QSYSPRT already exists as a 132 character record length, that is all you are able to access when the program runs.

You have two options to fix this, both are really easy:

1) Use the name of a printer file that has 198 columns. You can specify 198 columns as the page width on the CRTPRTF command to achieve this:

CRTPRTF FILE(QTEMP/QSYSPRT198) PAGESIZE(66 198)

2) Override the page size before calling the program using OVRPRTF FILE(QSYSPRT) PAGESIZE(66 198) to get the full 198 record width your program requires

All the best

Jonathan

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