Hi,
I need to suppress the left zeroes in a string.
For example : '0000525600254000' ==> '525600254000'
Does anyone have an idea ?
Thanks
Matthieu
Search found 32 matches
- Wed Sep 21, 2005 9:32 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Suppression Of left zeroes
- Replies: 10
- Views: 7237
- Fri Sep 09, 2005 2:13 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Memory Fault Error...Parallel job reports failure (code 139)
- Replies: 4
- Views: 4493
- Mon Aug 08, 2005 1:43 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Null detection after joiner
- Replies: 10
- Views: 7319
Hi, I used change capture. I don't use PX for 4 month, but I remembered it works well. If the change capture allow to have only the new lines and the modified ones and you need to keep the before lines also, may be you should add a funnel. Analysing modified, new, old [...] lines by a join stage is ...
- Sun Aug 07, 2005 3:56 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: simple question reg aggregator
- Replies: 8
- Views: 2641
- Sun Aug 07, 2005 3:54 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: simple question reg aggregator
- Replies: 8
- Views: 2641
- Thu May 26, 2005 5:20 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: user defined sql
- Replies: 6
- Views: 2608
Re: user defined sql
HI,
1) There is a space between "666," and "667" in your query.
2) Are your sure you are not supposed to use "." as decimal separator.
Good luck
Matthieu
1) There is a space between "666," and "667" in your query.
2) Are your sure you are not supposed to use "." as decimal separator.
Good luck
Matthieu
- Mon Feb 21, 2005 12:01 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Avoiding the stripping of single quote character
- Replies: 9
- Views: 5067
Re: Avoiding the stripping of single quote character
We use a query like this : SELECT KEY, Field1, Field2 FROM TABLE WHERE Field1 in (#PARAM1#) OR Field2 in (#PARAM2#) PARAM1 = \'VALUE1\' PARAM2 = \'VALUE2\' If we don't use \ then the query is seen like SELECT KEY, Field1, Field2 FROM TABLE WHERE Field1 in (VALUE1) OR Field2 in (VALUE1) and doesn't w...
- Mon Feb 21, 2005 6:34 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Avoiding the stripping of single quote character
- Replies: 9
- Views: 5067
Re: Avoiding the stripping of single quote character
Hi alone,
You have to put \ or / (I don't remember) before the quote.
Have fun.
Matthieu.
You have to put \ or / (I don't remember) before the quote.
Have fun.
Matthieu.
- Wed Feb 16, 2005 10:09 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: ORCHESTRATE process
- Replies: 4
- Views: 2584
- Sat Jan 08, 2005 7:31 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: PX 6.0 String to Decimal
- Replies: 12
- Views: 6384
Yes I'm talking about PX job. As strange as it seems it works with Datastage 6.0.1 version (I don't know with 7 version) ! We tried this after many problems with the conversion from string to decimal. About 5% of the datas with decimal values were wrong when a sign was included in the numeric field....
- Fri Jan 07, 2005 6:29 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: PX 6.0 String to Decimal
- Replies: 12
- Views: 6384
- Fri Jan 07, 2005 8:23 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Decimal rounding
- Replies: 8
- Views: 7617
Re: Decimal rounding
Just a precision.
I don't know why (may be something with the buffer) but in the transformer you use this formula you have to declare the field as decimal(11,3). If you really need to change to decimal(7,3) (not needed for Oracle) add a second transformer.
Bye
Matthieu
I don't know why (may be something with the buffer) but in the transformer you use this formula you have to declare the field as decimal(11,3). If you really need to change to decimal(7,3) (not needed for Oracle) add a second transformer.
Bye
Matthieu
- Fri Jan 07, 2005 8:08 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Decimal rounding
- Replies: 8
- Views: 7617
Re: Decimal rounding
Hi,
I found something for you.
Try this : DecimalToDecimal(StringToDecimal(convert(".", "", Link.FIELD))/1000, 'round_inf')/1000
000000000002.423567 -> 000000000002.424
000000000001.423467 -> 000000000002.423
Ciao
Matthieu
I found something for you.
Try this : DecimalToDecimal(StringToDecimal(convert(".", "", Link.FIELD))/1000, 'round_inf')/1000
000000000002.423567 -> 000000000002.424
000000000001.423467 -> 000000000002.423
Ciao
Matthieu
- Fri Dec 17, 2004 9:49 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Urgent ********* Decimal to pass without rounding
- Replies: 1
- Views: 1619
Re: Urgent ********* Decimal to pass without rounding
Hi,
Declare your field in the sequential file as string 18 and try this :
StringToDecimal(convert(".", "", Link.Field))/1000000000000000
It must work... tell us
Bye
Matthieu
Declare your field in the sequential file as string 18 and try this :
StringToDecimal(convert(".", "", Link.Field))/1000000000000000
It must work... tell us
Bye
Matthieu
- Fri Dec 17, 2004 9:36 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: APT_CombinedOperatorController,1: Operator terminated abnorm
- Replies: 4
- Views: 4076