GLOBAL TEMPORARY TABLES

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
edrenckh
Participant
Posts: 2
Joined: Thu Jul 01, 2004 6:12 pm

GLOBAL TEMPORARY TABLES

Post by edrenckh »

Has anyone used them in a DS job and passed them to the next event in the same job?

I can create them, load them, but in my next process they are gone. Any parameters/tricks, etc to get them to stay?

I am trying to use them to store imtermediate results and join a 'real' table with my intermediate results set in the temp table (instead of a hash file, which I cannot join with....)
ray.wurlod
Participant
Posts: 54595
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

No, temporary tables follow the rules for temporary tables; they are dropped when the user's session that created them ends.
Subsequent DataStage jobs are separate sessions.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
edrenckh
Participant
Posts: 2
Joined: Thu Jul 01, 2004 6:12 pm

Post by edrenckh »

This is one DS job, same step or process. I can't load the table and use it right away. DS must close the thread or ?? so that the table goes away (like it should), but I want to use it.
ray.wurlod
Participant
Posts: 54595
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Then don't use a temporary table.

Use a "real" table, and drop it once all jobs that need to deal with it have finished.

Of course, you need different authorization to create "real" tables, which will probably require negotiation skills!
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