want to delete datasets using orchadmin

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
abbhi
Participant
Posts: 32
Joined: Thu May 08, 2014 6:34 pm

want to delete datasets using orchadmin

Post by abbhi »

want to delete datasets over 3 months using orchadmin

what would be the command ?
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Basically it is "orchadmin delete" but I'm guessing this is more about the three months part. If you mean three months since it was created or modified, you can use find for that and then send them to orchadmin one by one.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Or even use the -exec option in find to execute the orchadmin rm {} command.
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 »

Exactly. That or xargs are the two options of choice with find.
-craig

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