Printing from RPG based program straight to printer without going thru output queu

pts.
Tags:
CLP
DataCenter
Printing
RPG
Hi I need to change by inhouse RPG programs to print direct to the printer output queue without going through the spool files. Anybody knows how can this be done? Is there any CL programming required? Thanks

Answer Wiki

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

This can be done two different ways. You can use the “OVRPRTF” giving the device(printer) name and “SPOOL *NO”. The other way, create the print file with the same parameters as stated above. NOTE: Word of warning, if this printer has a writer started, any spooler member that comes in will print between the pages of the direct report.

Discuss This Question: 2  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
  • WickedWoman
    In the previous answer, the first method (ovrprtf) will require CL programming unless you are running the program manually and do a manual override. The second method will not. Create the printer file with SPOOL(*NO) and use that name in the RPG program.
    0 pointsBadges:
    report
  • TomLiotta
    Note that in the answer above, the second alternative will also require CL since it takes CL to create or compile a printer file. If the response is that it doesn't require CL "programming", then the first method doesn't require CL "programming" either. The RPG program can pass the OVRPRTF command to QCMDEXC before opening the file just as CRTPRTF is passed to QCMD when run interactively. RascallyTom
    125,585 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