Wpoulin
1115 pts. | Aug 8 2008 1:22PM GMT
Unfortunately we are at V5R3 at the moment.
I don’t see that the response above relates or gives me the solution I’m looking for.
Thanks,
Bill
Gilly400
23625 pts. | Aug 11 2008 2:00PM GMT
Hi,
Have you tried this :-
OVRPRTF FILE(QPJOBLOG) OUTQ(youroutq) OVRSCOPE(*JOB)
Regards,
Martin Gilbert.
Wpoulin
1115 pts. | Aug 12 2008 2:29PM GMT
Martin,
Yes I have, the joblog still ends up in qezjoblog.
Bill
Gilly400
23625 pts. | Aug 12 2008 2:49PM GMT
Hi Bill,
I think the problem is that the joblog gets created *after* the job has completed, so the overrides, etc have no effect on it.
Maybe what you could try is to put the OVRPRTF in the CLP and as the last statement before it ends do a DSPJOBLOG *PRINT in the CLP itself. This way you should get a copy of your joblog in the right place. If you don’t want the *real* joblog to go to QEZJOBLOG, then you can add a CHGJOB LOG(0 99 *NOLIST) after the DSPJOBLOG command.
This isn’t a very nice way of doing what you want, but I think it should work for you.
Regards,
Martin.
Wpoulin
1115 pts. | Aug 12 2008 4:59PM GMT
Martin,
I came up with the same solution last week, but I was hoping that someone here would have a cleaner one. Yes, by doing the dspjoblog at the end of the clp I can control that report.
Guess I have to be satosfied with this solution until I get to V5R4.
Thanks,
Bill
TomLiotta
7615 pts. | Oct 16 2009 3:44AM GMT
First, duplicate QPJOBLOG into a library that you create for this purpose. Example name is MYSYSLIB. Then, change that copy of QPJOBLOG to point to the *OUTQ that you want.
Now, in your CL program, issue CHGSYSLIBL LIB( MYSYSLIB ). This would be done as the first executable command in order to be sure that it was in place whenever a joblog might be produced. MYSYSLIB will be at the top of the system portion of the library list, above QSYS. QPJOBLOG will be found in MYSYSLIB.
Note that you won’t want anything else in that library. Only this job should have authority to the library. Only this job will be affected by the altered setting.
Tom






