Search found 6 matches

by Benny Domeij
Fri Oct 31, 2008 5:14 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: StringToDate("#date_2nd_month#")
Replies: 3
Views: 1109

StringToDate("#date_2nd_month#")

I have defined the parameter date_2nd_month the value 2008-07-31 as a string and in a transformer I've created the variable valid_to_villkor as a date with the expression StringToDate("#date_2nd_month#"). Why am I getting the output ***** to that variable?
by Benny Domeij
Fri Oct 24, 2008 4:35 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Date comparison in tranformer
Replies: 2
Views: 1038

Date comparison in tranformer

I wonder why this expression only give me 'N' for column forny although I get rows with different valid_from_date2 and valid_from_date:
if DSLink247.valid_from_date2<>DSLink247.valid_from_date then 'J' else 'N'

valid_from_date2 and valid_from_date are in date format.
by Benny Domeij
Mon Oct 20, 2008 8:16 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Date addition in a constraint
Replies: 2
Views: 992

The format of renewal_date and valid_to_date are "2008-08-01"...
by Benny Domeij
Mon Oct 20, 2008 8:12 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Date addition in a constraint
Replies: 2
Views: 992

Date addition in a constraint

I'm trying to have a constraint that does the following: StringToDecimal(StageVar) <= StringToDecimal(StageVar1) +1 The two stage variables have these codes: StageVar1 DateToString(DSLink247.valid_to_date) StageVar DateToString(DSLink247.renewal_date) I have also made two columns to check the values...
by Benny Domeij
Thu Oct 16, 2008 5:23 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Trouble with index function in a filter
Replies: 3
Views: 1135

I get this error message:

Filter_131: Parse error: Expected comparison, 'between', or 'like' operator, got: "["
Parse error: Expected boolean operator (and, or) got: "1".
by Benny Domeij
Thu Oct 16, 2008 5:06 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Trouble with index function in a filter
Replies: 3
Views: 1135

Trouble with index function in a filter

I have trouble with an index function in a filter. The where condition is: INDEX('KM,CM,',produktomr:',',1) =1 I want only rows from the column produktomr that is equal to KM or CM. I have seen a post in the forum that discusses solutions with locate and findstr, but I found those solutions hard to ...