Clear the log from commadline based on number of days

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
ashish.inf
Participant
Posts: 2
Joined: Sun Feb 14, 2016 12:19 am

Clear the log from commadline based on number of days

Post by ashish.inf »

Hi,

Does CLEAR.FILE has an option to delete n number of days old datastage job logs files rather than cleaning complete log?

Or is there any other way through which it can be achieved by command line.?

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

Post by ray.wurlod »

CLEAR.FILE is absolute. ALL records are removed from the file.

Every log event has a TIMESTAMP field so you could use a DELETE statement constraining on that.
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