Accessing hash files in a directory

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
gpbarsky
Participant
Posts: 160
Joined: Tue May 06, 2003 8:20 pm
Location: Argentina

Accessing hash files in a directory

Post by gpbarsky »

:D :D :D :D :D :D :D :D

Hola mis amigos....

I need to cleanup temporary hash files that are being created in a specified directory; this is not the project directory.

Besides, I already have a routine to delete hash files, but from the project directory.

How can I do, to delete hash files from the others directories ?

Thanks in advance.
Guillermo P. Barsky
Buenos Aires - Argentina
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

For hash files not in an account, i.e. ones that are specifically pathed and created via 'mkdbfile', simply delete them from your operating system.
-craig

"You can never have too many knives" -- Logan Nine Fingers
gpbarsky
Participant
Posts: 160
Joined: Tue May 06, 2003 8:20 pm
Location: Argentina

Post by gpbarsky »

Thanks Craig.

My only concern was about to leave the VOC in a "good state".

So, with a "DEL" (delete) command and with the "RD" (remove dir) command I can make the cleanup of the directory in which the hash files are allocated. Isn't it ?
Guillermo P. Barsky
Buenos Aires - Argentina
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

You can get away with it because they have no VOC entry. Unless you've specifically added one to facilitate the use of some of the commands that require it, that is. :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

You can you use the search command on the VOC and look for that directory or

Code: Select all

LIST VOC WITH F2 LIKE DirName...
Mamu Kim
Post Reply