referencing remote hash files

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
SBSA_DW2
Premium Member
Premium Member
Posts: 37
Joined: Fri Jul 25, 2008 1:24 am

referencing remote hash files

Post by SBSA_DW2 »

Hi Guys

Normally we would just run the before job subroutine "CLEAR.FILE HASHFILENAME" to clear a hash file in the current project.

We have a scenario where we are reading and writing to the same hash file in the same job (aggregating), but need to clear the file before the job runs. The problem is, the hash file is residing on a different project.

Apart from creating a dummy job to clear the file before the current job runs, is there a way to reference remote hash files? Something like:

Code: Select all

CLEAR.FILE PROJECTNAME.HASHFILENAME
Thanks!
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Just set the Hashed File stage properties to "clear file before writing". It doesn't matter where the hashed file is. If the stage can write to the hashed file, it can clear it. (And it will use CLEAR.FILE technology under the covers.)
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
SBSA_DW2
Premium Member
Premium Member
Posts: 37
Joined: Fri Jul 25, 2008 1:24 am

Post by SBSA_DW2 »

thanks Ray
Post Reply