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
Clear the log from commadline based on number of days
Moderators: chulett, rschirm, roy
-
ashish.inf
- Participant
- Posts: 2
- Joined: Sun Feb 14, 2016 12:19 am
-
ray.wurlod
- Participant
- Posts: 54595
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
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.
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.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.