Hi
We are using Datastage 7.1r1 in Windows.
I have to remove comma froma string. I am not able to use Ereplace or Convert or any other similar function in the transformer.
So I created a test routine in the manager.
Routine definition: Ans=Ereplace(Arg1, " ","")
It is compiling without any errors.
But when I run it, it is throwing the following error.
TEST #1
*******
Arg1 = New York
Failed to compile test harness
Are these functions not compatible with DS7.1 version.
Please suggest me the work around for this.
Failed to Compile test harness
Moderators: chulett, rschirm, roy
Failed to Compile test harness
Thanks,
Madhavi
Madhavi
Your routine doesnot remove a comma from the string, it only removes spaces.
You need to use
It should work even in the transformer. Use the above code directly in the transformer, without the Ans = offcourse, and Arg1 will be replace by in.col
You need to use
Code: Select all
Ans = Ereplace(Arg1, ",","")
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Re: Failed to Compile test harness
Why not?pmadhavi wrote:I am not able to use Ereplace or Convert or any other similar function in the transformer.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.