Remove special characters ...

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
fareeda_b
Participant
Posts: 48
Joined: Sat Feb 23, 2008 4:25 pm

Post by fareeda_b »

Hi Vijay,

in db2 we have to use substr function

Example:select substr(empid,2,len(empid)) from schemaname.tablename;

try this one

hope it will help you.

if iam wrong correct me

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

Post by ArndW »

The substr() function in DB2 only helps if you know the actual location of the characters to replace.

In DS you can use the convert() function to convert certain characters to others (or to empty); but this list might be a long one unless you only have a limited number of special characters.

Do you just have those characters to be replaced, or do you wish to replace everything outside of the standard latin displayable character set?
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

What tool are you using to see this extra character? In the sequential file output stage, what have you set in the format for line, field and record terminators?
Post Reply