Removing a charecter from the first position of the value

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
ravi_etl
Participant
Posts: 9
Joined: Tue Jul 15, 2008 10:11 pm

Removing a charecter from the first position of the value

Post by ravi_etl »

Hi All,

Can someone tell me how to remove the double quote from the first position of the field value as below


"12345678


Thanks
fareeda_b
Participant
Posts: 48
Joined: Sat Feb 23, 2008 4:25 pm

Post by fareeda_b »

Hi Ravi,
have you tried convert function in transformer ?
try this one
Code:
Convert('"','',column name)
Thanks
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Code: Select all

RIGHT(In.Column,LEN(In.Column)-1)
will remove the first character.

Code: Select all

TRIM(In.Column,'"')
or the convert command as listed above will remove double-quotes from the string.
nagarjuna
Premium Member
Premium Member
Posts: 533
Joined: Fri Jun 27, 2008 9:11 pm
Location: Chicago

Post by nagarjuna »

If you are getting quotes starting everytime then you can also use substring function
Nag
Post Reply