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
If there is only one user receiving the reports, you can specify an outqueue in the sbmjob.
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
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.