Page 1 of 1

how to empty a HASH file?

Posted: Wed Dec 24, 2008 1:48 am
by qutesanju
hi
can anybody tell me how to empty a hash file?

Re: how to empty a HASH file?

Posted: Wed Dec 24, 2008 2:43 am
by veera24
qutesanju wrote:hi
can anybody tell me how to empty a hash file?
You can delete the file. It's better for us to explain if you post exactly wat you need.

Thanks,
Veera

Posted: Wed Dec 24, 2008 3:37 am
by ray.wurlod
Create a job that sends 0 rows, but has "clear before write" set. Or has "delete before create" set. If there is a VOC entry for the hashed file you can also use the CLEAR.FILE command (which the first of the above choices does under the covers).

Re: how to empty a HASH file?

Posted: Wed Dec 24, 2008 9:08 am
by Sathishkumarins
Simply you can add a transformer before hashed file and you can pass null values to the columns and as Ray mentioned you have check the option ''Delete file before create".

Posted: Wed Dec 24, 2008 9:19 am
by chulett
Have to? No, you can simply 'Clear' the hashed file as well.

Re: how to empty a HASH file?

Posted: Wed Dec 24, 2008 2:42 pm
by ray.wurlod
Sathishkumarins wrote:Simply you can add a transformer before hashed file and you can pass null values to the columns ...
That is wrong. What you do is set up a constraint expression (such as @FALSE) that allows no rows at all to pass. If you send NULL to a key column you end up with a warning in the job log. You ought never to generate warnings from server jobs.

Re: how to empty a HASH file?

Posted: Wed Dec 24, 2008 3:37 pm
by chulett
ray.wurlod wrote:
Sathishkumarins wrote:Simply you can add a transformer before hashed file and you can pass null values to the columns ...
That is wrong. What you do is set up a constraint expression (such as @FALSE) that allows no rows at all to pass. If you send NULL to a key column you end up with a warning in the job log. You ought never to generate warnings from server jobs.
And, for the trifecta, you also need to add a stage variable to the transformer so the job will compile. And while you cannot 'pass null values' you can set their derivation to @NULL with the @FALSE constraint that Ray mentioned.

Posted: Wed Dec 24, 2008 6:19 pm
by ray.wurlod
Correct terminology is HASHED file, not "hash" file.

To empty a hash file I imagine you would use a wire brush of some kind.

A hash file is a tool for shaping a block of hash.

Posted: Wed Dec 24, 2008 7:46 pm
by rameshrr3
hash can also be smoked ..lol..

Posted: Wed Dec 24, 2008 7:59 pm
by ray.wurlod
I wonder how you know that? Ah yes, California...

:lol:

Posted: Fri Jan 16, 2009 4:05 am
by ragavendradinesh
Hi,

You can clear a hashed file using the following command in the Execute option in Administrator.

clear.file hash_file_name

Posted: Fri Jan 16, 2009 4:25 am
by SoaresRui12
You can do the command uv, clear.<hashed file> in the "after job" option and clear the hashed file that have used in this job.
If it's that you are ashed.

Posted: Fri Jan 16, 2009 8:36 am
by chulett
That's already been noted along with the fact that that requires a VOC entry, i.e. an account-based hashed file or a pathed hashed file with a manually created VOC record.