Updating / writing ONLY to certain columns in a hashed 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

Post Reply
sec105105
Participant
Posts: 44
Joined: Fri Mar 20, 2009 7:21 am
Location: Ottawa

Updating / writing ONLY to certain columns in a hashed file

Post by sec105105 »

Is it possible to update *certain* columns in a hashed file? I know writes to HFs are row-destructive (if that's the term) , but has anyone come up with an approach through transformer or whatever to update conditionally certain columns?

In my case, I have a group of X records within a key, and various columns are populated in each of the records. I want to write the non-null columns to one final Hashed file record.

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

Post by ray.wurlod »

You can do this by using a UniVerse (UV) stage.

For that to work, there must exist a VOC pointer to the 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.
asorrell
Posts: 1707
Joined: Fri Apr 04, 2003 2:00 pm
Location: Colleyville, Texas

Post by asorrell »

Once you are in the uniVerse shell in the correct project you can use the SETFILE command to create a VOC pointer.

1) cd $DSHOME
2) bin/uvsh
3) LOGTO projectname
4) SETFILE (respond to prompts)
5) QUIT
Andy Sorrell
Certified DataStage Consultant
IBM Analytics Champion 2009 - 2020
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Or just run the SETFILE command from an Administrator client Command window in the project.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply