ODBC Connector _Before SQL section:Insert issue

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
smile.achieve
Participant
Posts: 15
Joined: Mon Apr 23, 2012 12:28 pm

ODBC Connector _Before SQL section:Insert issue

Post by smile.achieve »

I am using a ODBC connector stage and trying to insert and select on it.

I am tryin this way. In Before SQL section I am trying to insert data into table XYZ and in the select section i am writing a select col1,col2 from XYZ. While the connector and results are working fine. I am not seeing any inserted records in table XYZ. I suspect that once the ODBC connector stage is executed it is deleting all the records.

Also I have not used any option or sql statement to delete records of XYZ. Still this problem. Can some one let me know why inserted records are not available.
Smile :)
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Look in the job log to determine the result of the Before-SQL statement.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

If by "results are working fine" you mean you know the inserted records are being used by the select, then I suspect the records are rolling back. Perhaps a commit is in order?
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply