Clear the RT_LOG file for a specified date logs

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
satish_valavala
Participant
Posts: 123
Joined: Wed May 18, 2005 7:41 am
Location: USA

Clear the RT_LOG file for a specified date logs

Post by satish_valavala »

I would like to clear the RT_LOG file for a specified date/range of logs.

For example clear the previous all logs, except today's log from RT_LOG.

Is there anywayt to do this.

Thanks
Regards
VS
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Yes, it can be done. But it involves writing some DS/BASIC code. It is simpler and safer to use the auto-purge settings to let DataStage do this work for you automatically.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

In Director, choose Job > Clear Log.

In the dialog that follows, select the Immediate purge option, but change the conditions in the selection frame so that, instead of purging all events, purge only those more than one day old.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
satish_valavala
Participant
Posts: 123
Joined: Wed May 18, 2005 7:41 am
Location: USA

Post by satish_valavala »

Thanks to all
Regards
VS
Post Reply