delete datasets
Moderators: chulett, rschirm, roy
-
- Premium Member
- Posts: 236
- Joined: Sun Apr 01, 2007 7:41 am
- Location: Michigan
delete datasets
Can i delete more than 2 or 3 datasets using the execute command activity. i know to delete one dataset by giving "orchadmin rm -f" in command line adn "controlfile.ds" in parameter. but can i delete 2 or 3 datasets in a single execute command
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Only by constructing a multiple command pipeline.
Alternatively (and better, I believe) construct a shell script containing the required commands and execute that.
You can also include other commands (such as echo) to report the results of the individual commands based on their exit status ($?) and to force the script to return successfully (exit 0).
Code: Select all
orchadmin rm
controlfile1.ds ; orchadmin rm controlfile2.ds ; orchadmin rm controlfile3.ds
You can also include other commands (such as echo) to report the results of the individual commands based on their exit status ($?) and to force the script to return successfully (exit 0).
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.
-
- Premium Member
- Posts: 99
- Joined: Mon Sep 03, 2007 7:49 am
- Location: Stockholm, Sweden
Maybe I am terrably wrong here but I remember myself doing the same thing just putting the filenames after eachother in one file command....
orchadmin rm -f controlfile1.ds controlfile2.ds controlfile3.ds
Note: in AIX 5.3 Unix that is
orchadmin rm -f controlfile1.ds controlfile2.ds controlfile3.ds
Note: in AIX 5.3 Unix that is
-------------------------------------
http://it.toolbox.com/blogs/bi-aj
my blog on delivering business intelligence using agile principles
http://it.toolbox.com/blogs/bi-aj
my blog on delivering business intelligence using agile principles
-
- Premium Member
- Posts: 236
- Joined: Sun Apr 01, 2007 7:41 am
- Location: Michigan
delete datasets
I did the same thing using
"orchadmin rm -f controlfile1.ds controlfile2.ds controlfile3.ds" in execute command activity. It is working. Is this wrong approach
command line:orchadmin rm -f
parameters:controlfile1.ds controlfile2.ds controlfile3.ds
Please tell me abt this approach and anyy other better approaches are welcome
"orchadmin rm -f controlfile1.ds controlfile2.ds controlfile3.ds" in execute command activity. It is working. Is this wrong approach
command line:orchadmin rm -f
parameters:controlfile1.ds controlfile2.ds controlfile3.ds
Please tell me abt this approach and anyy other better approaches are welcome