Search found 152 matches

by betterthanever
Thu Sep 10, 2009 12:10 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: remove duplicates using Transformer
Replies: 6
Views: 1912

Thank you much, you are right I tested with only key 1 and key 2 and it worked just fine, removing the duplicates. I guess I has to use remove duplicate stage and retain the first record. After the transformer stage I will use the same partitioning in the remove duplicate stage and retain the first...
by betterthanever
Thu Sep 10, 2009 10:43 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Removing both duplicates
Replies: 4
Views: 1711

Re: Removing both duplicates

I have a requirement in which if a duplicate value occurs in a particular field, I need to drop both (or all) of the records with that value. I'm guessing there may be a sql statement that could be devised to handle this, but I'd like to do it without that if possible. Anyone have suggestions? Than...
by betterthanever
Thu Sep 10, 2009 8:37 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Close command : parallel
Replies: 9
Views: 2071

srinivas.g wrote:i ran same thing in datastage 7.5.1 A with four nodes.

But it is exceutes only once.

the close command query is

BEGIN
DELETE from <table name>;
COMMIT;
END;
try to insert into the table and have a primary key.
job will abort.

Regards.
by betterthanever
Thu Sep 10, 2009 8:30 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Close command : parallel
Replies: 9
Views: 2071

[quote="DSguru2B"]That is wierd. Can someone reproduce this on 7.x ? Get in touch with IBM and see what they have to say about it.[/quote] it happened to me as well. i was inserting into some table on 4 nodes, and my job aborts saying " i was trying to insert duplicates" . i am o...
by betterthanever
Mon Apr 13, 2009 11:14 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Maximum length of SQL in Oracle query
Replies: 11
Views: 4527

thought diffrent column names on each query...you were right
by betterthanever
Mon Apr 13, 2009 10:52 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Maximum length of SQL in Oracle query
Replies: 11
Views: 4527

Re: Maximum length of SQL in Oracle query

check the column names you gave in the colums tab. you are using union.. in the first query the first column is emp.a in the second query it is emp1.a use a common column name like this select emp.a as a ,emp.b as b ,emp.c as c from table emp union select emp1.a as a ,emp1.b as b ,emp1.c as c from t...
by betterthanever
Wed Apr 01, 2009 8:42 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Convert string to numeric value
Replies: 2
Views: 3861

Re: Convert string to numeric value

I this is happening since u have Filed Marks in the Execute Command output...

when assigning the output to the Job parameter, remove the the FM.

Code: Select all

Convert(@FM,'', Execute_Command_7.$CommandOutput)
by betterthanever
Thu Mar 26, 2009 7:50 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Error : Invalid number ORA-01722
Replies: 4
Views: 4174

were you able to run your query on DB without any issues???
by betterthanever
Wed Mar 25, 2009 5:32 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Datetime on Sequential File
Replies: 4
Views: 2345

Re: Datetime on Sequential File

are you writing file to file??? or from file to a DB table???
by betterthanever
Wed Mar 25, 2009 3:09 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Stored Procedure fails with incorrect SET options
Replies: 10
Views: 4060

does the SP runs with no issues when you run on the DB directly???
by betterthanever
Wed Mar 25, 2009 1:25 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Copy of Datasets in different environment
Replies: 3
Views: 1776

Re: Copy of Datasets in different environment

you can write that data set to a seqential file on prod and copy it to test.

before you run the job write from seq file to a dataset on test.

may be an option atleast.
by betterthanever
Wed Mar 25, 2009 1:22 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Oracle Inserts
Replies: 21
Views: 6515

yes you can go for that...unless you want to mention INSERT/UPDATE statements manually.
by betterthanever
Wed Mar 25, 2009 9:48 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Oracle Inserts
Replies: 21
Views: 6515

then write to a dataset load the DB eventually.
by betterthanever
Wed Mar 25, 2009 9:41 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Oracle Inserts
Replies: 21
Views: 6515

[quote="chulett"]It other words, do a lookup against the target table and only load those where the lookup fails. ...[/quote]

EXACTLY
by betterthanever
Wed Mar 25, 2009 9:29 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Oracle Inserts
Replies: 21
Views: 6515

you can use WRITE METHOD TO "load" if you just want to insert. but if you want to reject the records those exists, you can't have reject records tapping option in the ORACLE stage( in LOAD mode). you may have to do it in your job seperately and reject the existing records before you load t...