compress and delete dataset

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

chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Make sure you understand that there is no reason to delete just the descriptor files, all that will do is orphan the actual datasets they are associated with.

As noted, for "bulk" deletes you can script a do loop to run the orchadmin rm command for a list of .ds files with whatever age criteria you'd like. That will cleanly delete everything associated with each dataset, the desciptor file and the dataset itself.
-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 »

The files on the resource disk are not descriptor files. They are "segment" (data) files.

Descriptor files can live anywhere, and have ".ds" as their file name suffix.

A Data Set consists of its descriptor files and all of the segment files to which that descriptor file refers.

That's why orchadmin rm is the only safe way to delete a Data Set.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply