Informix temp tables possible?

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
inter5566
Premium Member
Premium Member
Posts: 57
Joined: Tue Jun 10, 2003 1:51 pm
Location: US - Midwest

Informix temp tables possible?

Post by inter5566 »

Morning,
Anyone using Informix temp tables in a DS project? Probably doesn't work, but asking anyway.[:D]

Steve
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

inter5566

It depends on how you setup temp tables. Temp tables are automatically deleted after a session closes in some databases which means no you cannot use these tables. If you import metadata from it then you can probably use it.

Kim.
roy
Participant
Posts: 2598
Joined: Wed Jul 30, 2003 2:05 am
Location: Israel

Post by roy »

Hi,
well your problem is probably due to the fact you are actually in another connection when trying to select the temp table you built,
hence can't access the temp table !!!

a simple "work around" if you might call it is to use actual tables, you build on the before sql statement. after you fetch the data you need in the after sql use drop table.

p.s.
I've encounterd some isues concerning the max length of the sql the informix deriver accepts, so if you get the same problem you might want to have the table generated via dbaccess and using the before/after sql to empty the table so it won't take to much of your dbspace.
the only down side is that the table will exists constantly and the delete statement might run a bit slow.

hope this helps,

Roy R.
Post Reply