Search found 72 matches
- Thu Jul 05, 2007 10:47 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: TRIM(varchar(50)) not working
- Replies: 15
- Views: 11732
Re: TRIM(varchar(50)) not working
Tried without the TRIM, no change.
- Thu Jul 05, 2007 10:37 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: TRIM(varchar(50)) not working
- Replies: 15
- Views: 11732
Re: TRIM(varchar(50)) not working
Ash I can definitely try that but here is a smple of the output: AddressLineOne, Length "16 PENNY LANE","13" "4-310 13TH AVE S","16" " ","40" " ","40" " ","40" " ","40" " &quo...
- Thu Jul 05, 2007 10:21 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: TRIM(varchar(50)) not working
- Replies: 15
- Views: 11732
Re: TRIM(varchar(50)) not working
Hi Ash
The reason of doing that is because if it encounters a NULL, the TRIM fails. So if there is a NULL, I convert it to space and then trim it.
The reason of doing that is because if it encounters a NULL, the TRIM fails. So if there is a NULL, I convert it to space and then trim it.
- Thu Jul 05, 2007 10:15 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: TRIM(varchar(50)) not working
- Replies: 15
- Views: 11732
Re: TRIM(varchar(50)) not working
Hi Ashashwin141 wrote:Why you are using TRIM function on a Varchar field - do you think it's needed?
Ash
I am using TRIM because I found spaces in the target sequential file and I wanted to reject those rows.
- Thu Jul 05, 2007 10:00 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: TRIM(varchar(50)) not working
- Replies: 15
- Views: 11732
TRIM(varchar(50)) not working
I have column AddressLineOne (Nullable, Varchar(50)) coming from a Complex Flat File (EBCDIC) and then goes to the transoformer, where I check if the column is NULL or it has spaces only or 0 length. If it does it needs to be rejected, else write to seq file. Here is the condition IF (Len(Trim(NullT...
- Tue Jun 26, 2007 7:34 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: How to concatenate values from similar keys
- Replies: 1
- Views: 765
How to concatenate values from similar keys
Hi I have a sequential file that contains the following values: "Col1", "Col2" "1","a" "1","b" "1","c" "2","d" "3","e" "4","f" "4","g" I nee...
- Mon Jun 25, 2007 7:33 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: DecimalToDecimal Syntax
- Replies: 6
- Views: 5748
Valid Scale
So what should be the valid argument in the DecimalToDecimal function?
Thanks
Thanks
DSguru2B wrote:Can you have input coming in with a valid scale (00010002.2) ?
- Thu Jun 21, 2007 12:21 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: DecimalToDecimal Syntax
- Replies: 6
- Views: 5748
decimal (p, s)
Dear Mr. Guru To Be I respectfully would like to state that I am no guru but I do know what is scale :D The statement decimal (p, s) with p as precision and s as scale represents a decimal number with up to p digits and s of them will be on the right of the decimal point. I already stated above that...
- Thu Jun 21, 2007 11:54 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: DecimalToDecimal Syntax
- Replies: 6
- Views: 5748
DecimalToDecimal
Can u specify scale in StringToDecimal()? If yes, can u please tell me the complete syntax? Thanks It is because your trying to fit a decimal number into a varchar field. It will not work. You need to do StringToDecimal() to fix the lenth and precision and then use DecimalToString() to convert it ba...
- Thu Jun 21, 2007 11:44 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: DecimalToDecimal Syntax
- Replies: 6
- Views: 5748
DecimalToDecimal Syntax
Hi I am have a varchar(50) field: Source Value Example: 00000000000100000. (it has a decimal at the end wihout any digits after the decimal) Needed value at traget: 100000.00 Source and target both need to be varchar(50) data type. I tried to do the folowing: Trim(DecimalToString(DecimalToDecimal(St...
- Wed May 02, 2007 6:58 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Oracle OCI Load Stage Automatic Mode & Plug-In Documenta
- Replies: 2
- Views: 908
- Wed May 02, 2007 4:47 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Oracle OCI Load Stage Automatic Mode & Plug-In Documenta
- Replies: 2
- Views: 908
Oracle OCI Load Stage Automatic Mode & Plug-In Documenta
DS Plug-In documentation for Oracle OCI Load Stage says: Automatic Mode: "The stage populates the Oracle database immediately after loading the source data." 1-Does "immediately after loading the source data" means that the data is first loaded onto a flat file and then written t...