Search found 353 matches

by chandra.shekhar@tcs.com
Mon Jan 21, 2013 11:49 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Null in non-nullable field?
Replies: 4
Views: 4562

In the transformer, are you using IsNull function for that column ?
by chandra.shekhar@tcs.com
Tue Jan 15, 2013 5:45 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Generate Id's based on the key field
Replies: 4
Views: 2607

Use 3 stage variables in the transformer, sort and partition the data on the MEMBER_ID.

Code: Select all

MEMBER_ID  --> svNew
If svOld = svNew then svCnt + 1 else 1 --> svCnt
svNew --> svOld
I dont have access to datastage right now, but the above logic should work.
by chandra.shekhar@tcs.com
Wed Jan 09, 2013 12:03 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: String conversion
Replies: 6
Views: 4143

@qutesanju
Those "squares" are because of char datatype and are actually blanks which are padded to the fixed length if the data has a shorter value.
The only solution to this problem is changing the data type to varchar.
by chandra.shekhar@tcs.com
Tue Jan 08, 2013 7:54 am
Forum: Site/Forum
Topic: Change user-name
Replies: 4
Views: 7103

All of my posts and points will be kaput.. :(
by chandra.shekhar@tcs.com
Tue Jan 08, 2013 12:10 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Issue with Loading Date
Replies: 4
Views: 3821

As told by Ray, either use $APT_DATE_CENTURY_BREAK_YEAR variable in your job parameters or using the below code in transformer while doing conversion
StringToDate(<date>, "%2000yy-%mm-%dd")
by chandra.shekhar@tcs.com
Tue Jan 08, 2013 12:06 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: date conversion from small int
Replies: 5
Views: 1675

As asked above you need to find the "Day 0" value. Mostly it is generic but sometimes project specific like in my project its 1899-12-31. So once you find it you can use any of the below functions :- date('1899-12-31') + n days If you are having a database as your source. DateFromDaysSince...
by chandra.shekhar@tcs.com
Mon Jan 07, 2013 12:18 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: JOb Running for Hours
Replies: 9
Views: 2885

vamsi, I dont think that you'll be able to to do that.
If your query has multiple tables in it, then its difficult to achieve partitioned read.
But you can test it at your end by running the job and taking the driving table of your query for partitioned reads and match the count. Give it a try.
by chandra.shekhar@tcs.com
Fri Jan 04, 2013 7:43 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Convert string to time with milliseconds
Replies: 4
Views: 2850

Did u enable the microseconds at the metadata level in the transformer ?
by chandra.shekhar@tcs.com
Fri Jan 04, 2013 7:42 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: JOb Running for Hours
Replies: 9
Views: 2885

I think It will not affect the aggregator performance, as I have used the same in DB2. And for your 2nd point, hope this might help.

<corrected>
by chandra.shekhar@tcs.com
Fri Jan 04, 2013 7:11 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: JOb Running for Hours
Replies: 9
Views: 2885

I think enabling Hash partitioning in the source would help.
And what about the partitioning at the target level ?
Also how much data we are talking about here ?
by chandra.shekhar@tcs.com
Fri Jan 04, 2013 7:05 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Convert string to time with milliseconds
Replies: 4
Views: 2850

First things first, did you try to search your issue ?
There are atleast hundreds of posts with exactly same issue.
Even then, try this

Code: Select all

StringToTime('Columnname',"hh%nn%ss.6")
Also enable the microseconds at the metadata level in the transformer.
by chandra.shekhar@tcs.com
Fri Jan 04, 2013 5:12 am
Forum: Site/Forum
Topic: Change user-name
Replies: 4
Views: 7103

Change user-name

Hi Moderators,
Is it possible to change the username ?
As you see, mine contains the email id of one of my TL who introduced us to this website. Now he's gone and still we use the same username. Is It possible to change the username to something generic ?