Clearing 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

tonystark622
Premium Member
Premium Member
Posts: 483
Joined: Thu Jun 12, 2003 4:47 pm
Location: St. Louis, Missouri USA

Post by tonystark622 »

Thanks for enlightening me, Craig. I have never seen this explained this way in the documentation. I appreciate your help.

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

Post by ray.wurlod »

There are two options.

You can create a VOC entry using SETFILE. Syntax for this command is:
SETFILE [pathname] [VOCname] [OVERWRITING]
For example:
SETFILE /usr2/data/hashedfiles/CustCodes CustCodes
Then you can use CLEAR.FILE successfully.

The other choice is to execute clear.file from the operating system shell. This command is located in DataStage Engine's bin directory; you can use its full pathname or have that bin directory in your PATH.
For example:
`cat /.dshome`/bin/clear.file /usr2/data/hashedfiles/CustCodes
tonystark622
Premium Member
Premium Member
Posts: 483
Joined: Thu Jun 12, 2003 4:47 pm
Location: St. Louis, Missouri USA

Post by tonystark622 »

Thanks, Ray!

Now that DataStage is my main focus at work, these kinds of things are very handy to know.

Thanks again,
Tony
Post Reply