× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



If you don't need to be dynamic in selecting the number of copies, there's a
"Copies" parameter in the CRTPRTF command.  You can set the number of copies
to print there.  Drawback is that it will always print that many copies.

If you need to be dynamic, you can code a call to QCMDEXC to run OVRPRTF and
change the "Copies" parameter.  Run the command before opening the printer
file in the RPG program.  Don't let RPG open the printer file automatically.

HTH,

Rick Weber | TЯU International 

-----Original Message-----
From: Yivi [mailto:nardus@xxxxxxxxx] 
Sent: Wednesday, October 05, 2005 10:26 AM
To: RPG programming on the AS400 / iSeries
Subject: printing multiple copies without CL

Is there any way that my RPG program prints N copies of the generated
report, without having to resort to CL to modify the spool job?

Been going through the documentation, but no luck so far...

Thanks for any clues. It's not vital, but would be nice.

Regards,

I.-

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.