Search found 25 matches

by ravi7487
Mon Apr 30, 2012 11:36 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: columns switch to rows with no duplicates
Replies: 1
Views: 1237

columns switch to rows with no duplicates

Hi Team,

we have a difficult scenario. please help us.

Input:

Key colmn1 column2
1 A X
1 A Y
1 B Z
1 B Z




Output :

Key Col1 Col2
1 A,B X,Y,Z
by ravi7487
Mon Aug 15, 2011 8:50 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: max of decimal(38) in aggregator stage gives junk values
Replies: 1
Views: 1569

max of decimal(38) in aggregator stage gives junk values

Hi, My Dimension ID from teradata table is varchar38. I have to find the max(dimension ID) in aggregator stage I am converting varchar38 to decimal38 in transformer, and doing max(dimensionID) in aggregator stage. after the agg stage, My output is coming as some junk integer. I tried stringtofloat.....
by ravi7487
Thu Feb 17, 2011 10:41 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: node contraints
Replies: 12
Views: 8159

THank you, I used the system variable in transformer stage @INPARTNUM which gives the partition number for the partition keys, al dept10, dept20 values are assigned partition number as 1. So, I am not able to understand this ?
by ravi7487
Thu Feb 17, 2011 8:44 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: node contraints
Replies: 12
Views: 8159

Could you please explain chulett, thank you
by ravi7487
Thu Feb 17, 2011 8:11 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: node contraints
Replies: 12
Views: 8159

Thank you all for replying. I have my default config. File as above with two nodes, I did not select any node constraint option in my job( it means running on all available nodes). I gave system variable @partition number to an output column, I only see partition '1', for dept 10 and 20 values, I am...
by ravi7487
Wed Feb 16, 2011 8:43 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: node contraints
Replies: 12
Views: 8159

node contraints

Hi, A default configuration file running on a windows PC with one CPU usually has one node. Can we split that into two nodes by giving something like below? if i have key column value deptno with values like below, will hash partition sends dept 10 values on one node and dept 20 values on another no...
by ravi7487
Tue Feb 15, 2011 10:50 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: compare values in transformer stage
Replies: 27
Views: 14774

Thank you very much, Thanks a ton

DSXchange members helped me a lot.

Thanks again.
by ravi7487
Tue Feb 15, 2011 10:36 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: compare values in transformer stage
Replies: 27
Views: 14774

Thanks Chulett,

how will i know what the first record is, so i can have a different value for previousvalue? is there any technique? please let me know
by ravi7487
Tue Feb 15, 2011 10:27 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: compare values in transformer stage
Replies: 27
Views: 14774

Thank you all for replying,
so, when comparing the values in transoformer,
for the first incoming row to transformer, the initial value for the "previousvalue" should be assigned something that will not match with the first incoming row.

Am i correct? Please let me know. Thanks.
by ravi7487
Tue Feb 15, 2011 12:25 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: compare values in transformer stage
Replies: 27
Views: 14774

Thanks for the reply. I got the output correct with the below formula. Intial value = 0 for IsDup Initial value =0 for currentvalue ( which is different from firstvalue in source) If DSLink2.deptno = currentvalue then 1 else 0 = IsDup DSLink2.deptno= currentvalue. but, i do not want to initialize cu...
by ravi7487
Mon Feb 14, 2011 10:34 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: compare values in transformer stage
Replies: 27
Views: 14774

Could you please tell me the logic how to compare two values in transformer?
by ravi7487
Mon Feb 14, 2011 8:35 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: compare values in transformer stage
Replies: 27
Views: 14774

Please tell me the logic, I am not able to get it, thank you
by ravi7487
Mon Feb 14, 2011 7:52 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: compare values in transformer stage
Replies: 27
Views: 14774

Thank you for clarifying, But what initial value should I put in for the previous value?
by ravi7487
Mon Feb 14, 2011 7:33 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: compare values in transformer stage
Replies: 27
Views: 14774

Ray, Chulett told me to switch the order of the stage variables, so i put it as now i gave as If DSLink2.deptno = Lastvalue then 1 else 0 = Isdup DSLink2.deptno= Lastvalue constraint : Isdup=0 i still not able to remove duplicate values? could you please help? to remove the duplicate values, the com...
by ravi7487
Mon Feb 14, 2011 2:12 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: compare values in transformer stage
Replies: 27
Views: 14774

can anyone please let me know the logic to compate two values using stage variables?

col1

100
100
200
300
200
400

what will be the initial value of the Lastvalue in the below logic?

If DSLink2.deptno = Lastvalue then 1 else 0 = Isdup
DSLink2.deptno= Lastvalue

constraint : Isdup=0