AS/400 printing error

35 pts.
Tags:
AS/400 printing
Overflow Error CPF5004
RPG/400
How can I go to next page when I am printing from an RPG/400 program and using an externally described printer file. Scenarios are:- 1. I need to print only 2 lines in a page, and print 2 more lines in next page. 2. I am coming across overflow error CPF5004 when printing a database file. Should I use skip keyword? please someone help me out?

Answer Wiki

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

Hi,

You should have a header and detail record in your external print file, with SKIP specified on the header and SPACE specified on the detail. Then you write your header record, write your detail lines, then another header record to take you to the next page then write more detail records.

Regards,

Martin Gilbert.

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