Hi all
By now I've understood why the orchadmin command should be used to delete datasets and why we shouldn't go for the kill with an rm command.
However I have a few follow up questions which I hope someone here can help me out with:
1) Is the orchadmin rm command only for datasets or filesets as well? Any other types other than these 2?
2) Can I use this command to delete datasets from all subdirectories of a certain directory - without removing the actual subdirectories as well?
3) Can I use this command to delete datasets from all subdirectories of a certain directory except a certain one (which I'd ideally filter out) - without removing the actual subdirectories as well?
My problem actually is - I have a LOT of unused datasets in around a 100 subdirectories mostly created by obsolete projects which i need to remove else my new interfaces are not working because of lack of disk space (as shown by a df -k command) and thus I need to free up space.
Thanks
Tony
ORCHADMIN command - nitty gritty
Moderators: chulett, rschirm, roy
-
- Premium Member
- Posts: 288
- Joined: Tue May 27, 2008 3:42 am
- Location: Luxembourg
ORCHADMIN command - nitty gritty
Tony
BI Consultant - Datastage
BI Consultant - Datastage
-
- Premium Member
- Posts: 288
- Joined: Tue May 27, 2008 3:42 am
- Location: Luxembourg
I've used the find command to execute the orchadmin command in the past quite successfully..although all my datasets where in the one directory...but I see no reason why the code you wrote wouldn't work...have you tested it on a small subset to confirm , or as suggested used an echo command to confirm your command??
Regards
Chris Fuller
"Reality is what refuses to go away when you stop believing in it"
Chris Fuller
"Reality is what refuses to go away when you stop believing in it"
-
- Premium Member
- Posts: 288
- Joined: Tue May 27, 2008 3:42 am
- Location: Luxembourg
Actually I think there were so many datasets, i panicked something was going wrong when the screen scrolled indefinitely - I thus stopped the command prematurely thinking I was deleting everything...
However with the echo command I managed to list out (in a file) the individual orchadmin commands which seemed to work (I tested a few) - I thus think I'm good.
Thanks one and all.
However with the echo command I managed to list out (in a file) the individual orchadmin commands which seemed to work (I tested a few) - I thus think I'm good.
Thanks one and all.
Tony
BI Consultant - Datastage
BI Consultant - Datastage