How to purge job logs through command line.

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
pradeepleon
Participant
Posts: 32
Joined: Fri Dec 02, 2005 10:44 pm
Location: Chicago,IL

How to purge job logs through command line.

Post by pradeepleon »

Does anyone know how can we purge Job logs through Unix command line ?

Appreciate your response,
thanks,
Pradeep.
Thanks,
Pradeep

(Ten Hugs And Nine KisseS - THANKS)......is that true?

In GOD we trust,for all others we take cash.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

There really isn't a way. You can perhaps 'truncate' them using CLEAR.FILE in a dssh session, but you'd need to know the job number and restore the auto-purge settings afterwards as they would be removed as well.
-craig

"You can never have too many knives" -- Logan Nine Fingers
dspxguy
Participant
Posts: 156
Joined: Thu May 24, 2007 4:09 pm
Location: Simi Valley, CA

Post by dspxguy »

Logs are tables stored in Universe so you need to log in to TCL and execute CLEAR.FILE RT_LOGxxx command.
pradeepleon
Participant
Posts: 32
Joined: Fri Dec 02, 2005 10:44 pm
Location: Chicago,IL

Post by pradeepleon »

Thank you Craig and Billie(dspxguy) for your response.

Pradeep.
Thanks,
Pradeep

(Ten Hugs And Nine KisseS - THANKS)......is that true?

In GOD we trust,for all others we take cash.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

CLEAR.FILE is NOT the same as a log purge.

CLEAR.FILE destroys control records, forcing DataStage to re-create those next time the job runs.

And CLEAR.FILE certainly does not provide partial purge (number of days old or number of job runs to keep).

There is absolutely no command line interface supplied for these.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Which is why I noted it was akin to a truncate.
-craig

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