The number of copies is a printer file attribute (COPIES) that can be specified at compilation time (CRTPRTF), modified for an existing *PRTF object (CHGPRTF) or overriden using the OVRPRTF command.
The attribute is also copied across to spool files on output queues, so the number of copies can be changed using the CHGSPLFA command too.
I'm not aware of any setting where you can default that one user has two copies of all reports printed and another user just has one copy of the same *PRTF.
If you want to do it by user then you would probably use an initial program for each user that needs more than one copy of a report and add OVRPRTF commands to create the number of copies.
If you want anything more complicated then you need to look at either writing a set of programs that monitors output queues and prints multiple copies based on your business rules or look at the various "spool control" utilities that already exist on the market.
All the best
Jonathan
Last Wiki Answer Submitted: April 15, 2005 4:43 am by astradyne370 pts.
If you live outside the United States, by submitting your email address you consent to having your personal data transferred to and processed in the United States.
If you are using a CL program you can have a variable for number of copies which will be used on the OVRPRTF command. Retrieve the userid who is running the job (RTVJOBA) and set the number of copies variable as needed. If you have a lot of users to check you might want to create a file with the userid, jobname, and number of copies. You can access this file to put the correct number in the number of copies variable.
If you are using a CL program you can have a variable for number of copies which will be used on the OVRPRTF command. Retrieve the userid who is running the job (RTVJOBA) and set the number of copies variable as needed. If you have a lot of users to check you might want to create a file with the userid, jobname, and number of copies. You can access this file to put the correct number in the number of copies variable.