How to purge the RT_LOG using DELETE command in uvsh

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
soportesis
Premium Member
Premium Member
Posts: 21
Joined: Thu May 31, 2007 8:58 am

How to purge the RT_LOG using DELETE command in uvsh

Post by soportesis »

Hi,

I'm trying to purge RT_LOG file (DATA.30 and OVER.30) using DELETE command. The problem is that only the DATA.30 file is being purged. Is there a way or a command you could use to purge OVER.30 file?

This is an example of the command I use:

Code: Select all

DELETE FROM RT_LOGXX WHERE TIMESTAMP < 'Today'
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

DELETE purges data from both parts. Space is made available against future re-use rather than being reclaimed, so it may appear (from the sizes) that OVER.30 is not being purged. If you ever need to reclaim the available space in a dynamic hashed file the appropriate commands are either CLEAR.FILE filename or RESIZE filename * * *
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply