how to delete a hash file ?

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
kollurianu
Premium Member
Premium Member
Posts: 614
Joined: Fri Feb 06, 2004 3:59 pm

how to delete a hash file ?

Post by kollurianu »

Hi All,


How to delete hash files , i want remove one hash_file dynamic hash file
from the hash file directory , i know the hash file name that is to be removed , can i just use ' rm' command of unix..........


any ideas, all suggestions are most welcome.

Appreciate your time and thank you all.
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

As long as you didn't use "SETFILE" or your hash file was created by a job using a project name or the default "account" option, you are safe to issue the rm command to remove hash files.

There is a "D_filename" file in the directory where the hash file resides. It's easiest to issue an "rm -r *filename" as long as that doesn't pick up extra hash files.
Kenneth Bland

Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
kollurianu
Premium Member
Premium Member
Posts: 614
Joined: Fri Feb 06, 2004 3:59 pm

Post by kollurianu »

yes , I didnot use the SETFILE option to create the file , the hash file was

created by the datastage job itself in the hash files directory ,

so i can safely use rm command as you suggested Kcbland.

Thank you so much for ur time and immediate response.
Nic
Charter Member
Charter Member
Posts: 24
Joined: Mon Sep 26, 2005 1:08 pm
Location: UK

Use Administrator

Post by Nic »

I always use Administrator. On the Projects tab click on your project and use Command. On the command line use:

Code: Select all

delete.file hashfilename
This should be the safest option.
I_Server_Whale
Premium Member
Premium Member
Posts: 1255
Joined: Wed Feb 02, 2005 11:54 am
Location: United States of America

Post by I_Server_Whale »

Hi,

Like Nic said using,

Code: Select all


DELETE.FILE HashFileName
would be the best bet.

Thanks,
Naveen.
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Re: Use Administrator

Post by kcbland »

Nic wrote:I always use Administrator. On the Projects tab click on your project and use Command. On the command line use:

Code: Select all

delete.file hashfilename
This should be the safest option.
This only works if the hash file was created in the project using the default option, not an externally pathed file.
Kenneth Bland

Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
Post Reply