How to detect the presence of '^Z' 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
savis
Premium Member
Premium Member
Posts: 27
Joined: Tue Apr 15, 2008 11:06 pm

How to detect the presence of '^Z' character

Post by savis »

Hi,

Is there a way to detect the presence of '^Z' character in a field.

I tried using count() function.

But it is not detecting.

Thanks in advance

Savis
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Exactly how did you use the Count() function? I would recommend

Code: Select all

Count(In.ColumnName,CHAR(26))
savis
Premium Member
Premium Member
Posts: 27
Joined: Tue Apr 15, 2008 11:06 pm

Post by savis »

thanks.. It worked..

Can i replace the '^Z' character with space?

Is there a way to do it?
umapathi
Participant
Posts: 5
Joined: Thu Jan 12, 2006 10:59 am
Location: India

Post by umapathi »

This could help you...

Convert(Char(26),' ',In.ColumnName)
Reddy
JSimon
Premium Member
Premium Member
Posts: 47
Joined: Fri Dec 14, 2007 8:47 am
Contact:

Post by JSimon »

The Convert function. You would have to check the syntax, but off the top of my head maybe something like Convert(Char(26)," ",variable)

Jason
-----
Jason Simon
Consultant / Developer
Attevo, Inc.

http://www.attevo.com/
http://www.projectjlm.com/
http://www.elefoo.com/
umapathi
Participant
Posts: 5
Joined: Thu Jan 12, 2006 10:59 am
Location: India

Post by umapathi »

it wl work....
Convert(Char(26),' ',In.ColumnName)
or
Convert(Char(26),Space(1),In.ColumnName)
Reddy
savis
Premium Member
Premium Member
Posts: 27
Joined: Tue Apr 15, 2008 11:06 pm

Post by savis »

Thanks..
Post Reply