cleaning special characaters in char fields in db2

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
donny
Premium Member
Premium Member
Posts: 15
Joined: Thu Dec 15, 2005 11:45 am

cleaning special characaters in char fields in db2

Post by donny »

any clue how to clean up special chars in char fields in db2 using datastage px

thanks in advance
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

And what do you classify as "special" characters? :?
-craig

"You can never have too many knives" -- Logan Nine Fingers
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Also define your NLS settings for DB2 and DataStage and what you consider a cleanup to be (removing them, mapping them to other characters, etc.).
donny
Premium Member
Premium Member
Posts: 15
Joined: Thu Dec 15, 2005 11:45 am

Re: cleaning special characaters in char fields in db2

Post by donny »

actually the source is mainframe , ftp stage is used to get it to unix box first then CFF is used for translating and pushing data into sequential file.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

And?
-craig

"You can never have too many knives" -- Logan Nine Fingers
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

That was an interesting post, donny. You managed to answer some questions that weren't asked but avoided answering any of the questions that were... :roll:
donny
Premium Member
Premium Member
Posts: 15
Joined: Thu Dec 15, 2005 11:45 am

special chars

Post by donny »

after populating sequential file , data is transmitted thru transformer and loaded into db2
donny
Premium Member
Premium Member
Posts: 15
Joined: Thu Dec 15, 2005 11:45 am

special chars

Post by donny »

after populating sequential file , data is transmitted thru transformer and loaded into db2
donny
Premium Member
Premium Member
Posts: 15
Joined: Thu Dec 15, 2005 11:45 am

Re: special chars

Post by donny »

i want to cleanup the special characters :roll:
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Do you not realize that saying "special characters" is pretty much meaningless? Most of the time what people think are "special" or "junk" are just characterset conversion errors or perhaps ones they've never seen before and "cleaning" (as in removing/stripping) them may not be the appropriate response. Which is why Arnd made the statement he did.

So, without knowing what these characters are that you need help with, people can't really post appropriate answers. Any idea what characterset(s) are involved here, source and target? Can you give us some idea what unexpected characters it is you are seeing? :?
-craig

"You can never have too many knives" -- Logan Nine Fingers
Sairam
Participant
Posts: 42
Joined: Tue Nov 11, 2003 1:09 pm

Post by Sairam »

Use this ecpression in Transformer it will replace any special characters with ''.

Code: Select all

if alnum(lnk.SrcCol) =0 then '' else lnk.SrcCol 
Let me know .[/quote]
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Do you have the authority to unilaterally change your client's data?
:roll:
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply