Hi,
We have a always running job and job logs become huge after 2-3 days.
Requirement is to clear the job logs automatically when the job is running.
We tried to set the automatic purge log after 2 days but it did not clear out the logs if the job is running.
Regards,
Clear Job log automatically
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
There is nothing in the product to clear the job log while its job is running. Log purge occurs on successful completion of a job.
So the "requirement" would have to be solved with a routine. Personally I think it's a silly requirement - why not tighten the auto-purge setting for that job to, perhaps, keep only one job?
So the "requirement" would have to be solved with a routine. Personally I think it's a silly requirement - why not tighten the auto-purge setting for that job to, perhaps, keep only one job?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Hi,
We have only one job which will be always running in production..its a NRT job sourcing from MQ and populating DB2.
As you said log purge only occurs during during succesful completition of job .....but in our case the job log becomes too big and only time we can clear is after 12-14 days i.e. job will be stopped every 10-12 days...we were thinking of some procedure to clear the log while its running.
Regards,
We have only one job which will be always running in production..its a NRT job sourcing from MQ and populating DB2.
As you said log purge only occurs during during succesful completition of job .....but in our case the job log becomes too big and only time we can clear is after 12-14 days i.e. job will be stopped every 10-12 days...we were thinking of some procedure to clear the log while its running.
Regards,
ray.wurlod wrote:There is nothing in the product to clear the job log while its job is running. Log purge occurs on successful completion of a job.
So the "requirement" would have to be solved with a routine. Personally I think it's a silly requirement - why not tighten the auto-purge setting for that job to, perhaps, keep only one job?
Hi,
We are trying to reduce the warnings...but then also every time the data i.e. message is processed thru containers it add few lines to code and we are processing like 20-30 messages every 10 seconds.
Regards,
We are trying to reduce the warnings...but then also every time the data i.e. message is processed thru containers it add few lines to code and we are processing like 20-30 messages every 10 seconds.
Regards,
chulett wrote:Out of curiousity, what is causing the log growth? If there are a plethora of warnings being generated, could not the job be modified to tone them down or perhaps eliminate them?