Page 1 of 1

To delete dataset file (.ds)

Posted: Thu Mar 05, 2009 1:42 pm
by mingzhang
I know the dataset file(.ds) can be deleted via "Data Set Management" Tool.
Is there other way to delete it? (eg. using command line?...) Or any way we can put the deletion into the Job Sequence?

Thanks

Posted: Thu Mar 05, 2009 2:47 pm
by lstsaur
Yes, use "orchadmin" from the command line.

Posted: Thu Mar 05, 2009 3:37 pm
by mingzhang
I got it. Just make it clear:
orchadmin delete <dsname>

And there are also other useful commands to manage the dataset files. (like copy ...)

Thank you so much.

lstsaur wrote:Yes, use "orchadmin" from the command line.

Posted: Thu Mar 05, 2009 10:02 pm
by wahi80
orchadmin rm <dataset name>

is the right synatx

Posted: Thu Mar 05, 2009 10:39 pm
by ray.wurlod
orchadmin rm <dataset name>.ds

is the correct syntax.

The orchadmin command requires the pathname of the Data Set control file as its argument. This (typically) is the Data Set name followed by a ".ds" suffix.

Posted: Fri Mar 06, 2009 9:11 am
by mingzhang
Thanks.

But it seems all the following commands are working in Datastage 8.0.1:
orchadmin delete
orchadmin del
orchadmin rm

ray.wurlod wrote:orchadmin rm <dataset name>.ds

is the correct syntax.

The orchadmin command requires the pathname of the Data Set control file as its argument. This (typically) is the Data Set name follo ...