Deleting hashfile problem

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
Emilio
Participant
Posts: 17
Joined: Wed Jan 28, 2004 2:18 pm
Location: Frederick, MD

Deleting hashfile problem

Post by Emilio »

I am having problems deleting a hashfile.
Here is my line:
StrCommand = "del /Q " : pTEMPDIR : "\" : pHashFile : " " : Homedir : " " : HashPath : ' 30 1 4 20 50 80 1628'
It deletes the DATA.30 and OVER.30 file but it does not delete the hidden .Type30 file. :?
I also tried the command "del /QH " which suppose to delete hidden files but it created some crazy fies instead. I searched the archives for an answer but nothing comes close to answer.
The /Q is so it won't prompt you if you wanted to delete the files (Y/N).
Thanks,
Emilio
trokosz
Premium Member
Premium Member
Posts: 188
Joined: Thu Sep 16, 2004 6:38 pm
Contact:

Post by trokosz »

Well if you are trying to delet ea hash file outside of the Project in another location (no VOC entry exists) then you can simply delete them from operating system with your command of choice.

But if your hash files are located in the Project...is this true? Then you need to go to Administrator command into the Project of choice and execute the command DELETE.FILE <filename> because a VOV entry exists in this case and a operating system command will not work.
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

Look at the "rmdir /S /Q \fullyqualifiedhashedfile" command to remove a hashed file directory and its contents, then "erase \basehashedfiledirectory\D_hashedfilename" to get rid of the D_hashedfilename 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
ridar
Participant
Posts: 10
Joined: Wed Sep 28, 2005 5:59 am

Post by ridar »

Doesn't the rm -r PATHNAME\HASHFILENAME work in deleting it permanently :? :?:
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Windows.
-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 »

MKS Toolkit.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Granted.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply