Remove hash

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
RAI ROUSES
Participant
Posts: 176
Joined: Wed Nov 15, 2006 5:48 am

Remove hash

Post by RAI ROUSES »

At the end of the job I would like to remove the hash file ? How can I do that ?

Cheers
8) Rai 8)
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Why did you post this in the parallel forum?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
RAI ROUSES
Participant
Posts: 176
Joined: Wed Nov 15, 2006 5:48 am

Post by RAI ROUSES »

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

Post by chulett »

What you talk'n about Ray? :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

I'm curious why you think you need to delete the hashed file when you are done? From both a lineage and trouble-shooting standpoint, you may be in trouble if that information is gone. Why not simply clear it (or drop and recreate it) at the start of the next run, an ability that's built into the stage?
-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 »

You can delete the hashed file (note: it's not "hash" file) using an after-stage or after-job subroutine. The actual command to use will depend on whether you are using an account-based or directory-based ("pathed") hashed file.
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 »

As noted, it depends on how the hashed file was created. The log will show the command used, from which you can infer what you need to do to delete. So, pathed or in an account?
-craig

"You can never have too many knives" -- Logan Nine Fingers
greggknight
Premium Member
Premium Member
Posts: 120
Joined: Thu Oct 28, 2004 4:24 pm

Post by greggknight »

I would use a parameter in the hashfile name so that each one is related to the run it was loaded in.

I agree with previous posts that they should not be removed.
1) for trouble shooting reasons.
2) disk space. What I mean by that is if the files maintain approx the same size each time they will hold the space they need for each run.
.......
"Don't let the bull between you and the fence"

Thanks
Gregg J Knight

"Never Never Never Quit"
Winston Churchill
Post Reply