convert function to strip out comma character

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
mkkgupta
Premium Member
Premium Member
Posts: 17
Joined: Thu Jan 24, 2008 10:13 pm

convert function to strip out comma character

Post by mkkgupta »

Hi,

I am using a following syntax to repalce comma character and then if I find any "!" in my string I want to set it to NULL to avoid using those values.

However I still see output column values with comma in it.

var1 = Convert("#$%/&,;","!!!!!!!", SvDomain)
and using a following constraint to set it to null Index(var1, "!",1) >0

thank you,
Kiran
Regards
Kiran
anbu
Premium Member
Premium Member
Posts: 596
Joined: Sat Feb 18, 2006 2:25 am
Location: india

Post by anbu »

Isolate the rows in target which has comma and look for the same rows in input and check for any non-printable characters
You are the creator of your destiny - Swami Vivekananda
mkkgupta
Premium Member
Premium Member
Posts: 17
Joined: Thu Jan 24, 2008 10:13 pm

Post by mkkgupta »

I do not see any spl characters.

here is the example

PLAINSISD,ESC17.NET
Regards
Kiran
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Capture the value of var1 and svDomain, perhaps using an in-link Peek stage - what's in them for the rows where a comma still gets through?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
mkkgupta
Premium Member
Premium Member
Posts: 17
Joined: Thu Jan 24, 2008 10:13 pm

resovled by giving length filed to Stg var. substring

Post by mkkgupta »

I did not gave value for length filed while calculating SvDomain Stg. variable using substring function.

issue is resolved as soon as i provide length in substring.

I saw only records related to "comma" made me to post this topic.

Anyway thank you All!!!

Kiran
Regards
Kiran
Post Reply