How to delete a huge log

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
gpbarsky
Participant
Posts: 160
Joined: Tue May 06, 2003 8:20 pm
Location: Argentina

How to delete a huge log

Post by gpbarsky »

Hi forumerssssss.......

I have a HUGE log (greater than 2Gb), and I want to delete it. When I try from the Director, my machine hangs on.

How can I do to clear the job log ?

I'm in DS 7.5.

Thanks in advance.
:)
Guillermo P. Barsky
Buenos Aires - Argentina
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

One suggestion would be patience. Clear it from the Status view, not the log view and then... wait. That or CLEAR.FILE RT_LOGnnnn if you know the job nnnnumber, but then you'll need to reestablish the auto-purge settings afterwards.
-craig

"You can never have too many knives" -- Logan Nine Fingers
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Or, export the job, delete it and then re-import it.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
gpbarsky
Participant
Posts: 160
Joined: Tue May 06, 2003 8:20 pm
Location: Argentina

Post by gpbarsky »

Thanks to everybody.

Finally, I could delete the job and recover it from a backup that I had taken.

I will try the CLEAR.FILE when I can do it.

Thanks again.
:D
Guillermo P. Barsky
Buenos Aires - Argentina
sunayan_pal
Participant
Posts: 49
Joined: Fri May 11, 2007 12:24 am
Location: kolkata

Post by sunayan_pal »

chulett wrote:One suggestion would be patience. Clear it from the Status view, not the log view and then... wait. That or CLEAR.FILE RT_LOGnnnn if you know the job nnnnumber, but then you'll need to reestabl ...
as mentioned how to find the job nnnnumber so that i can use it in
CLEAR.FILE RT_LOGnnnn
regards
sunayan
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Or just export it first so you don't need to futz with a backup after the delete.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply