Search found 6797 matches

by DSguru2B
Tue Jan 16, 2007 2:48 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Pulling out Text in between tags
Replies: 11
Views: 2405

I was heading in the same direction Ken. But i came up with this

Code: Select all

in.Col[INDEX(in.Col,">",1)+1,INDEX(in.Col,"</",1)-20]

where 20 is the length of string "<\CSTN_LAST_UPD_DTM>".
by DSguru2B
Tue Jan 16, 2007 2:35 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Regarding Analyzing Parameter
Replies: 5
Views: 774

Re: Regarding Analyzing Parameter

vijaykumar wrote:$DB TYPE ENTER THE DATABASE TYPE STRING $PROJDEF



It indicates the type of database as it says. It could be any database type. One place where it can be used is in the DRS stage.
by DSguru2B
Tue Jan 16, 2007 2:09 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: NULL. Record dropped
Replies: 7
Views: 2278

That particualr field is NULL. Hangle nulls properly.
by DSguru2B
Tue Jan 16, 2007 1:55 pm
Forum: General
Topic: Aggregator and sum function
Replies: 21
Views: 9235

Thank Ken, really. He pointed out the NULL factor and that gave us a lead. Great, now you can mark it as resolved.
by DSguru2B
Tue Jan 16, 2007 1:28 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: date portion
Replies: 12
Views: 2245

Either in the sql select using TO_CHAR() or its equivalent for your database type or using the modify stage/transformer by using the timestamptostring() function.
by DSguru2B
Tue Jan 16, 2007 1:21 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: date portion
Replies: 12
Views: 2245

Change the timestamp to string and then try doing the comparison.
by DSguru2B
Tue Jan 16, 2007 1:21 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Directory Projects in other location
Replies: 5
Views: 1344

Thats what i keep telling everyone, Search is your best friend. You can now mark your topic as resolved.
by DSguru2B
Tue Jan 16, 2007 1:18 pm
Forum: General
Topic: Aggregator and sum function
Replies: 21
Views: 9235

Apply the derivation i gave you in the previous post for both Feed1_Field1 and Feed2_Field1. Your hashed file feed will be null if the lookup is not found. In your stage variable apply the following derivation If reflink.NOTFOUND then 0.0000 + Feed2.Field1 else reflink.Feed1_Field1 + in.Feed2_Field1
by DSguru2B
Tue Jan 16, 2007 12:48 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: comparaison between Old and new value in stage variable
Replies: 13
Views: 3039

Re: comparaison between Old and new value in stage variable

Ok, just for clarification. Is the following what you want.
Input
Id1, Type1, 1
Id1, Type2, 2
Id2, Type1, 3
Id3, Type2, 4

output
Id1, Type1, 1 AND 3
Id2, Type1, 3
Id3, Type2, 4
by DSguru2B
Tue Jan 16, 2007 12:40 pm
Forum: General
Topic: Aggregator and sum function
Replies: 21
Views: 9235

I thought it was already coming in as char and you wanted decimal(x,4) where x is the length. Lets start from the begining, this is going no-where. -Handle nulls before doing any manipulations using -Change it to the required format before doing aggregations. If ISNULL(in.Col) OR Len(Tri...
by DSguru2B
Tue Jan 16, 2007 11:28 am
Forum: General
Topic: Aggregator and sum function
Replies: 21
Views: 9235

No. It will not matter. The target sql type will decide what type it is.
by DSguru2B
Tue Jan 16, 2007 11:25 am
Forum: General
Topic: Aggregator and sum function
Replies: 21
Views: 9235

As Ken advised, handle nulls before sending your stream into the aggregator.
by DSguru2B
Tue Jan 16, 2007 11:23 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: comparaison between Old and new value in stage variable
Replies: 13
Views: 3039

Why dont you use the aggregator for your requirement?
by DSguru2B
Tue Jan 16, 2007 9:33 am
Forum: General
Topic: Aggregator and sum function
Replies: 21
Views: 9235

Before sending it to the aggregator, change the sql type from char to decimal. You might want to re-think the length. You sure its 100. Thats way too much. Change it to float or decimal and scale to 4 as you say, for both the inputs. Then try adding them.
by DSguru2B
Tue Jan 16, 2007 9:18 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Start Loop - End Loop Problem
Replies: 3
Views: 3741

Because there is no value being passed from the routine activity? If the re-run of routine activity every time you restart your sequence will not affect anything then check the box "Do not check point" so that the routine activity will fire everytime giving your start loop a value to start with. If ...