Trim in Modify stage
Moderators: chulett, rschirm, roy
-
- Premium Member
- Posts: 730
- Joined: Tue Nov 04, 2008 10:14 am
- Location: Bangalore
I have tried as posted, its triming only the leading spaces
I have tried as posted, its triming only the leading spaces but the trailing spaces still remain untrimmed. please suggest............
Re: I have tried as posted, its triming only the leading spa
Try
n3:string[max=20] = string_trim[" ",end,begin](n1)
Thanks
Sanjay
n3:string[max=20] = string_trim[" ",end,begin](n1)
Thanks
Sanjay
zulfi123786 wrote:I have tried as posted, its triming only the leading spaces but the trailing spaces still remain untrimmed. please suggest............
-
- Participant
- Posts: 2
- Joined: Tue Oct 21, 2008 1:51 am
trim in modify
I myself tried few things but nothing seems to be working
All the functions mentioned in the post , none of them works for me
space=String_Trim[" "](ABC)
space=String_Trim(ABC)
space=String_Trim[" ",end,begin](ABC)
.
.
.
. list goes on but always i get the same output
Peek_292,0: space: 4
with trim_leading_trailing and strip_white_spaces, the job aborts.
any idea where i am wrong
All the functions mentioned in the post , none of them works for me
space=String_Trim[" "](ABC)
space=String_Trim(ABC)
space=String_Trim[" ",end,begin](ABC)
.
.
.
. list goes on but always i get the same output
Peek_292,0: space: 4
![Sad :(](./images/smilies/icon_sad.gif)
with trim_leading_trailing and strip_white_spaces, the job aborts.
any idea where i am wrong
gaurav garg
ETL developer
ETL developer
-
- Participant
- Posts: 1
- Joined: Wed Aug 01, 2007 10:55 pm
- Location: bangalore
Re: I have tried as posted, its triming only the leading spa
Can Somebody still help me , how we would trim the char field in modify stage
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Technically you can trim a Char data type but it is padded before being transferred to the output link. The pad character is defined using the environment variable APT_STRING_PADCHAR. A Char field has a constant size on an output link.
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.