RATE THIS ANSWER
+1
Click to Vote:
1
0
If your profile does not have the proper authorities, then I would suggest you run the program with one that does.
As far as the reports go, you can look into one of the several email programs, both free and commercial, that are available for the iSeries. MMAIL and RPGMAL are two of the free ones that come to mind. I think MMAIL even has a spool file to PDF converter.
There are a host of commercial email programs out there also. The one that we use is MAILTOOL and MAILTOOL Plus by Brad Stone.
_______________________
You could chgobjown of your program to a user that has sufficient authority to delete the libraies. Then chgpgm to usrprf (*owner) useadpaut(*yes) so the program will use the owners authority regardless of the user who submits the program. I would recommend public(*exclude) for your program and add authorized users individually.
IBM's Infoprint Server for iSeries (5722-IP1) enables the production of Adobe Portable Document Format (PDF) files from any iSeries output.
================================================
Note that USEADPAUT(*YES) is unnecessary if USRPRF(*OWNER) is supplying desired adopted authority. USEADPAUT(*YES) would only be needed if the program required adopted authority from higher in the call stack. And since USEADPAUT(*YES) is the standard default anyway, it's usually discussed in terms of USEADPAUT(*NO) where the intention is to
block adopted authority from propagating into
and through this program, potentially down to even lower call-stack levels.
Tom
Last Answered:
Nov 6 2009 2:04 AM GMT by TomLiotta 
7525 pts.