Search found 10 matches

by dsfan2004
Thu Jan 20, 2005 5:35 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: wirting a basic routine to run sql
Replies: 4
Views: 1944

I need to run a select statement and return the result ( the result is always a single value ), is there a way i can do it?
kduke wrote:The easiest way is to run a shell script which runs sqlplus or whatever.
by dsfan2004
Thu Jan 20, 2005 4:41 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: wirting a basic routine to run sql
Replies: 4
Views: 1944

wirting a basic routine to run sql

Hi everyone,

is there anyway I can write a sql statement in a Datastage Basic routine?
by dsfan2004
Tue Nov 23, 2004 9:48 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Can I use a job parameter in Datastage SQL
Replies: 2
Views: 8026

Can I use a job parameter in Datastage SQL

Good morning everyone, Can I use a job parameter in Datastage SQL? for example, if I have a job parameter named process_date, and I want to get all the data from a table TBL_Transaction before process_date, can I write a sql like this select * from TBL_Transaction where Last_Update_Date<= #process_d...
by dsfan2004
Wed Sep 15, 2004 7:47 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: writing to a hash file that already has data
Replies: 2
Views: 1540

writing to a hash file that already has data

Hi everyone, If I write data to a has file that already has data, is it going to delete existing data on the has file? or the new data will do an update or insert to the hash file, that is, if the key of the new data correspond to an entry on the hash file, then update, else insert the new data. You...
by dsfan2004
Sun Aug 29, 2004 2:33 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: jobs halts
Replies: 3
Views: 1549

found out the problem

found out the problem. It is the function keymanagement.getnextvalue that causes the halt.
by dsfan2004
Sun Aug 29, 2004 11:36 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: jobs halts
Replies: 3
Views: 1549

jobs halts

Hi everyone, my job halts for no reason, here is the symptoms: the job crashed earlier due to orcle table space problem. after extended the table space, I tried to restart the job, the job seems to be running, but numbers on all links are 0, and there is no error log. I tried so many ways, such as r...
by dsfan2004
Tue May 25, 2004 12:14 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: update with non-prime key in the where statement.
Replies: 6
Views: 2700

Re: here is the SQL

No, only column 1 is the key. This is the user defined SQL UPDATE Dealer SET DEALER_DESC=:3 WHERE DEALER_CODE=:2; INSERT INTO Dealer (DEALER_KEY,DEALER_CODE,DEALER_DESC) VALUES (:1,:2,:3) There's your problem - all variables must be bound, so you can't get away with not mentioning :1 in your first S...
by dsfan2004
Tue May 25, 2004 7:10 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: update with non-prime key in the where statement.
Replies: 6
Views: 2700

here is the SQL

This is the SQL generated by Datastage notice that the DEALER_KEY is the primary key. It is an auto number, I generated it by using keymgt.getnextvalue. DEALER_CODE is the actual business code. UPDATE Dealer SET DEALER_CODE=:2,DEALER_DESC=:3 WHERE DEALER_KEY=:1; INSERT INTO Dealer (DEALER_KEY,DEALER...
by dsfan2004
Mon May 24, 2004 3:37 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: update with non-prime key in the where statement.
Replies: 6
Views: 2700

update with non-prime key in the where statement.

Hello everyone, I got this problem when I tried to update an Oracle table. Here is the scenario: The primary key is an automated number. ( I generated it using keymgt.getnextvalue). There is a business key ( not nullalbe, but not a primay key ) on the table. If any new item has the same business key...