5 pts.
 User to release & print spool file belonging to operator
In my environment, the AS400 operator runs the AS400 batch jobs generating reports. Hence, the spool files will be owned by AS400 operator. I need these reports owned by the AS400 operator to be released and printed by the user of the reports at a printer in the user's overseas location instead of at the AS400 operator location. How can I achieve this without having to give the users special authority like the spool file authority (*SPLCTL) and the job control authority (*JOBCTL)?

Software/Hardware used:
ASKED: August 3, 2010  8:13 AM
UPDATED: August 4, 2010  2:39 PM

Answer Wiki:
In your CL can you either hard code an OVRPRTF to go to a different output queue or soft code it by putting entries in a table and retrieveing them with the CL an do the OVRPRTF?
Last Wiki Answer Submitted:  August 3, 2010  3:33 pm  by  CharlieBrowne   33,695 pts.
All Answer Wiki Contributors:  CharlieBrowne   33,695 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

If there is only one user receiving the reports, you can specify an outqueue in the sbmjob.

 2,865 pts.

 

It’s hard to certain without knowing something about your environment. In particular what is your OS VRM level?

In recent releases, spool file ownership has been changing. The OVRPRTF SPLFOWN() parameter is supplied in order to help control ownership. You might have the job run OVRPRTF to set the desired owner before calling the program that is currently called. The output location may be set at the same time.

With appropriate ownership, special authorities for users shouldn’t be an issue.

Tom

 110,115 pts.

 

We got around that issue (admittedly on a smaller scale) by building a report distribution program that runs every hour. All reports from nightly runs are directed to a hold output queue – the program reads a data queue attached to the output queue and, using a file to control direction, uses SNDTCPSPLF to effect the distribution.

 5,730 pts.