Printing on AS/400

pts.
Tags:
AS/400
Programming Languages
RPG
Can we dynamically control the number of copies to be printed on AS/400 session. Any help on this would be appreciated. Thanks

Answer Wiki

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

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

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
  • Cyates
    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.
    0 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