Search found 7 matches

by gayatri
Tue Mar 27, 2007 10:44 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: how to select date
Replies: 3
Views: 936

DSguru2B wrote:Use simple logical operators >,<,= etc. Also for date comparisons, either convert it in YYYY-MM-DD format or to internal format.
I can't use to_date or to_char in datastage, so how can I write it. I appreciate any input
by gayatri
Tue Mar 27, 2007 10:28 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: how to select date
Replies: 3
Views: 936

how to select date

Hi,

In transformer I am applying logic where I have to select date between
(for example:1/1/2000 and 12/31/2000). Can anyone please help me how to write this date logic in datastage? I am new to all of this.

Thanks
by gayatri
Thu Mar 22, 2007 10:12 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Between function
Replies: 3
Views: 1259

Between function

Is there any BETWEEN function in datastage like we have in oracle. If not, what can I use for between.
by gayatri
Wed Dec 13, 2006 11:46 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: date conversion
Replies: 3
Views: 1202

date conversion

Hi,

I am trying to load data into table.

source data for date is 1/1/2007
target table date format is 1-jan-07

how can i solve this.

Thanks
by gayatri
Tue Dec 12, 2006 3:01 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: trying to truncate the string
Replies: 9
Views: 3529

In the expression that i provided earlier, "in.Col" is your input column. You need to replace that with your inputlink.columnname. ... Thanks so much function worked but I am getting another error now SQLSTATE=22008, DBMS.CODE=0 [DataStage][SQL Client][ODBC][Oracle][ODBC]Datetime field ov...
by gayatri
Tue Dec 12, 2006 11:49 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: trying to truncate the string
Replies: 9
Views: 3529

Welcome Aboard :P Use the Field Function. Use DataStage help to see how it works. For your problem, use this Field(in.Col, " ",1) I used this function. I am getting this error. Field(in.Col, "0:00:00 ",1) it returned "1/1/2" Please correct me if I am doing this wrong.
by gayatri
Tue Dec 12, 2006 11:23 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: trying to truncate the string
Replies: 9
Views: 3529

trying to truncate the string

Hi,

I am trying to truncate part of the string. This is the raw data.

1/1/2007 0:00:00

I only need date from this. How can i extract only the date.
I used Left function, not working. Is there any truncate function in datastage that I can use.

Thanks