, none of 'x's are trimmed, which is absolutely wrong.
Do these 'L', 'T' and 'B' options work in parallel version or is it behaving oddly because it version 7.5x2?
Please advise,
Thanks,
Whale.
Anything that won't sell, I don't want to invent. Its sale is proof of utility, and utility is success.
Author: Thomas A. Edison 1847-1931, American Inventor, Entrepreneur, Founder of GE
Not DataStaging today, so I can't check. First step would be to check whether it's documented as behaving the same way, or whether different control codes are used for familiar (from server jobs) functionality.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
What is your OS?
You are in 7.5x2 which is datastage EE for windows but you had posted you are working in UNIX.
I am using datastage 7.5.1.A in AIX.
I had similar problems with TrimB and TrimF function in the past. Manual specifies that TrimB and TrimF removes tab but as far as i tried it does not remove tabs.
Whale, if this is in a Transformer stage can you take a look at the generated C++ code? For job number xxxx this will be in a sub-directory called RT_SCxxxx in the project directory on the server.
I'll see if I can find a 7.5x2 system tomorrow or Friday.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
ray.wurlod wrote:Server edition is completely irrelevant here.
Whale, if this is in a Transformer stage can you take a look at the generated C++ code? For job number xxxx this will be in a sub-directory called RT_SCxxxx in the project directory on the server.
I'll see if I can find a 7.5x2 system tomorrow or Friday.
Hi All,
Sorry for the delay. My bad about the OS. It was an accident. It is in fact 7.5x2 on Windows.
Ray,
I'll check and post the C++ code. Many thanks,
Whale.
Anything that won't sell, I don't want to invent. Its sale is proof of utility, and utility is success.
Author: Thomas A. Edison 1847-1931, American Inventor, Entrepreneur, Founder of GE
I noticed this kind of behavior if the input column is character data type column , by which length of field is not exactly same as field length defined and it pads spaces at the end. Last example works fine since i am triming trailing spaces and then trimming again...
In every case, it uses the trimc_string function with the respective options. What does this trimc_string function do? What is its usage syntax?
Anyways, that's the content of the C++ code.
Thanks again. Appreciate it.
Whale.
Anything that won't sell, I don't want to invent. Its sale is proof of utility, and utility is success.
Author: Thomas A. Edison 1847-1931, American Inventor, Entrepreneur, Founder of GE
thamark wrote:I noticed this kind of behavior if the input column is character data type column , by which length of field is not exactly same as field length defined and it pads spaces at the end. Last example works fine since i am triming trailing spaces and then trimming again...
Means
Col1 Char 2000
Col1 ='xxxxxxxxxAAAAAAAxxxxxBBBBBBBBBBxxxxxxxx'
Trim(InCol, 'x','B')
AAAAAAAxxxxxBBBBBBBBBBxxxxxxxx
Trim(InCol,'x','L')
AAAAAAAxxxxxBBBBBBBBBBxxxxxxxx
Trim(InCol,'x','T')
xxxxxxxxxAAAAAAAxxxxxBBBBBBBBBBxxxxxxxx
Trim(Trim(DSLink32.Col1), 'x','B')
AAAAAAAxxxxxBBBBBBBBBB
thamark,
I have my input and output columns defined as Varchar(100). So that's not what is causing it. I even tried
Anything that won't sell, I don't want to invent. Its sale is proof of utility, and utility is success.
Author: Thomas A. Edison 1847-1931, American Inventor, Entrepreneur, Founder of GE