Inserting Special Characters

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
Pk39565
Premium Member
Premium Member
Posts: 34
Joined: Tue Dec 25, 2007 12:03 am
Location: Brisbane

Inserting Special Characters

Post by Pk39565 »

we are recieving sequnetial files from source system which are delimited by pipe.
for one of the column called NAME is having characters with single quotes.
like
O'Brien.

When inserting into oracle table through OCI stage load is aborted sue to single quotes in the name.

Can you please help handling this problem

thanks,
Pagadrai
Participant
Posts: 111
Joined: Fri Dec 31, 2004 1:16 am
Location: Chennai

Re: Inserting Special Characters

Post by Pagadrai »

Hi
try doubling up on the ' character.
you can use any convert function in transformer stage.

Eg: Say you want to insert this : Oh 'joy'
you need to insert the value as 'Oh ''joy'''

You can test this with a sample Insert statement.
v2kmadhav
Premium Member
Premium Member
Posts: 78
Joined: Fri May 26, 2006 7:31 am
Location: London

Post by v2kmadhav »

what is the datatype for column NAME?
when you do a view data on the input file... does it display the ' correctly?

what is the exact error message that you get?
Post Reply