Search found 353 matches

by chandra.shekhar@tcs.com
Thu Feb 21, 2013 12:07 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Primary Key Query
Replies: 5
Views: 1813

@Craig Not able to view your whole response, but I am doing what you are saying. My target is DB2 Connector and I have selected auto generated query. The query i see in the director logs is correct and is according to my requirement. Still its not working, I m out of options now. By the way, who is ...
by chandra.shekhar@tcs.com
Wed Feb 20, 2013 8:19 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Primary Key Query
Replies: 5
Views: 1813

Primary Key Query

Hi, I have a small query, one of my table doesn't has any PK. Initially the mode of writing was only Insert. Now due to a new requirement updates can also be possible. So I asked my DBA not to define any PK column as I thought I can handle in my job itself. So in the target stage, I tick marked the ...
by chandra.shekhar@tcs.com
Wed Feb 13, 2013 7:10 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: handle_null() to replace one column with another when NULL
Replies: 4
Views: 1610

According to your requirement if KEY1 is null then value of KEY2 column should be mapped, then the data type of both KEY1 and KEY2 should be same. So

Code: Select all

handle_null(KEY1,'2013-01-01')
will work but

Code: Select all

handle_null(KEY1,245)
will not work.
by chandra.shekhar@tcs.com
Wed Feb 13, 2013 5:19 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: handle_null() to replace one column with another when NULL
Replies: 4
Views: 1610

Is handle_null a system function ?
The KEY1 column should contain date value, any other data type values will throw error.
by chandra.shekhar@tcs.com
Wed Feb 06, 2013 12:47 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Sum, Count on varchar in Aggregator
Replies: 16
Views: 14440

My bad :oops: , I read incorrectly.
I thought the grouping key is DUMMY column.
But now I have checked its the AgeGroup column itself.
But I don't understand that why the need for extra column, for counting purpose I can use AgeGroup column too, can't I ?
by chandra.shekhar@tcs.com
Wed Feb 06, 2013 12:21 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Date match format error
Replies: 14
Views: 5330

While reading the date value from the file, mark the column as NOT NULL and in the transformer check for empty only. If Trim(date_column) = '' Then StringToDate("12/31/9999",'%mm/%dd/%yyyy') Else StringToDate(date_column,'%mm/%dd/%yyyy') Or Use the "Null Field Value" property in ...
by chandra.shekhar@tcs.com
Tue Feb 05, 2013 11:45 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Sum, Count on varchar in Aggregator
Replies: 16
Views: 14440

I am dealing here with 520 million records :wink: . I join two sets of 260 million records each and then pass it to Aggregator. My minimum throughput I get is around 200000 rows/sec. But my database is not on a remote server and my job finishes within 30 mins. Performance is not an issue for me. But...
by chandra.shekhar@tcs.com
Tue Feb 05, 2013 12:05 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Insert,update,insert/update on same table in same job
Replies: 5
Views: 3925

I think it is a better practice to do all inserts in 1 job and updates(or upserts) in other job to avoid locking at the table.
by chandra.shekhar@tcs.com
Tue Feb 05, 2013 12:02 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Sum, Count on varchar in Aggregator
Replies: 16
Views: 14440

@Zulfi/Prasson, Thanks for your replies. I got what you are suggesting, but as I said these are round way solutions and I wanted a straight forward solution like enabling some properties or using Environmental variable. I have tried one more way where I generate a column "CODE" and for eve...
by chandra.shekhar@tcs.com
Mon Feb 04, 2013 7:25 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Convert into single cell - All values
Replies: 4
Views: 2684

Looks like a vertical pivot to me with an extra step to contatenate the new columns into a single one, perhaps with a newline between them
I think Craig has given you the solution.
by chandra.shekhar@tcs.com
Mon Feb 04, 2013 1:08 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Sum, Count on varchar in Aggregator
Replies: 16
Views: 14440

@Zulfi
Can you elaborate a bit ?
by chandra.shekhar@tcs.com
Fri Feb 01, 2013 8:11 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Parallel job reports failure (code 134)
Replies: 8
Views: 8273

I know my answer will sound stupid but even then try it. :oops:
Copy all the contents of your job and paste it in a new job.
Then try running it.
by chandra.shekhar@tcs.com
Fri Feb 01, 2013 4:54 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Sum, Count on varchar in Aggregator
Replies: 16
Views: 14440

Sorry Ray, not able to view your whole response. But got the idea so here it is; My data is like AgeGroup Balance 18-20 100.0 18-20 200.0 20-25 1000.0 20-25 2000.0 20-25 3000.0 30-35 300.0 O/P data will look like AgeGroup Count SumOfBalance 18-20 2 300.0 20-25 3 6000.0 30-35 1 300.0 Now I have tried...
by chandra.shekhar@tcs.com
Fri Feb 01, 2013 3:54 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Sum, Count on varchar in Aggregator
Replies: 16
Views: 14440

Thanks for the reply. Actually the SUM is on a decimal field but the group column is a varchar(like a name). I have tried a lot of things but getting errors Error when checking operator: It is not legal to set a reducer (AGE_GRP) to be the same as a key field, when the type of that field (int32) is ...
by chandra.shekhar@tcs.com
Thu Jan 31, 2013 11:37 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Sum, Count on varchar in Aggregator
Replies: 16
Views: 14440

Sum, Count on varchar in Aggregator

Hi All,
I want to calculate SUM and COUNT on varchar field in Aggregator.
I have searched many posts and found out that "Preserve Type" option is present but it works only for MIN and MAX functions.
Can any one suggest how to accomplish this ?