Calling PRTF from main program

5 pts.
Tags:
AS/400 Printer File
AS/400 printing
AS/400 PRTF
PRTF
How do you call the PRTF from your main program?

Answer Wiki

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

Hi,

You need to define your PRTF in your RPG and WRITE the record formats.

Maybe this site will help.

Regards,

Martin Gilbert.

Discuss This Question: 1  Reply

 
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
  • ToddN2000
    You don't call a PRTF. It is a pre-defined print file,creeated in the DDS, unlike a standard spool file like QSYSPRT. It is referenced the same way in the F spec of a program. You would then write to it like a normal spool file but the control of overflow and line spacing is done in your code using line counters. 
    15,605 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