Clean-up or purge multi instance jobs from Director

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
mandyli
Premium Member
Premium Member
Posts: 898
Joined: Wed May 26, 2004 10:45 pm
Location: Chicago

Clean-up or purge multi instance jobs from Director

Post by mandyli »

Hi

I would like to purge or clean-up from the Data stage director automatically for Multi instance jobs logs and instance also.

I hope multi-instance job will append with Invocation id.

Like:

Ld_Exe_Metric.8699687
Ld_Exe_Metric.8699688
Ld_Exe_Metric.8699689

So I don't want to keep the entire instance I need to keep just 5 days run. Is this anything I have to setup at project level?

Thanks
Man
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Well... to get this off the table right away, have you tried setting the Auto Purge option for the base job to keep 5 days worth of runs? Did that not work for you?
-craig

"You can never have too many knives" -- Logan Nine Fingers
mandyli
Premium Member
Premium Member
Posts: 898
Joined: Wed May 26, 2004 10:45 pm
Location: Chicago

Post by mandyli »

YES.

It is working for Log. not for Job Instance.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

If you remove the instance-related records from RT_STATUSnnn then the log events for that instance will automatically be purged.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
mandyli
Premium Member
Premium Member
Posts: 898
Joined: Wed May 26, 2004 10:45 pm
Location: Chicago

Post by mandyli »

Thanks Ray.

Is this any way I can do it automatically ?

Like Auto-purge


Thanks
Man
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

OK... it's been awhile but since there is only one log that all instances share and I thought I recalled that the Director uses what is basically a view into that log to show what happened for each instance run, I thought I remembered that purging the instance specific records from the log would remove the display of those runs from the Director as well.

Based on Ray's reply, that would seem to be not the case. So, are you (either of you) saying that it will still show the instance in the Director log but have nothing to display when you check the log for that instance? I would think by now 'they' would have implemented something more... generic... than having to go under the covers and remove 'instance-related records' from a hashed file. :?

I'm assuming the old 'trick' of recompiling (resetting?) the job still removes all instances from the Director? I realize that wasn't what was asked for, just seeking a clarification...
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

There's no automatic way, but you could create a server routine and run it from the Routine editor's Test button.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
mandyli
Premium Member
Premium Member
Posts: 898
Joined: Wed May 26, 2004 10:45 pm
Location: Chicago

Post by mandyli »

Thanks Ray.

I can able to see the Auto-purge is working for only Jobs not for multi instance jobs.

I hope I have to clear the RT_STATUS for all the multi instance jobs.

I see the following information from IBM.

"The RT_STATUS part of the log auto-purge can be disabled by setting an
environment variable DS_NO_INSTANCE_PURGING=1 "


Is this will helpful or will do for multi instance jobs from Director?


Thanks
Man
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

I'm not sure what that statement from IBM Is about. Can you please cite a source? Meanwhile, you do not have to clear the RT_STATUS file (that would be unwise); you only need to delete the entries corresponding to the invocation ID(s) that you want to purge.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
mandyli
Premium Member
Premium Member
Posts: 898
Joined: Wed May 26, 2004 10:45 pm
Location: Chicago

Post by mandyli »

Thanks Ray.

I want to delete the multi instance file from Director.


Thanks
Man
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

I don't know that you can. What happens if you try?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
mandyli
Premium Member
Premium Member
Posts: 898
Joined: Wed May 26, 2004 10:45 pm
Location: Chicago

Post by mandyli »

If I try to delete from director it will delete,but I need to delete automatically.


Thanks
Man
nirav.parikh
Participant
Posts: 14
Joined: Thu Dec 13, 2007 2:57 am

Post by nirav.parikh »

This is a bug for which there is a patch out there.

Even when you have the auto-purge setting set at say last 5 runs, the logs related to different instances do not go away.

Please install Patch JR46141 and this issue should go away.

http://www-01.ibm.com/support/docview.w ... wg1JR46141

We have got this installed in our environements and it worked like a charm.
Thanks & Regards
Nirav
Post Reply