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
Software/Hardware used:
ASKED:
November 12, 2006 10:40 PM
UPDATED:
December 25, 2009 4:56 AM
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.
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