How to print a single quote(') in a transformer

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
suneyes
Participant
Posts: 82
Joined: Mon Jul 21, 2008 8:42 am

How to print a single quote(') in a transformer

Post by suneyes »

Hi,
I have a requirement to append a single quote(') to a column in datastage.
As quotes are used to enclose string values it is not letting me to print this charecter.
can any one help me with this?

example:
if the input is 123456
I want the output as '123456
sun
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Assuming that the data type of the outbound column is string, and that you're doing this in a Transformer stage, then a suitable expression is

Code: Select all

"'" : InLink.TheColumn
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
suneyes
Participant
Posts: 82
Joined: Mon Jul 21, 2008 8:42 am

Post by suneyes »

ray.wurlod wrote:Assuming that the data type of the outbound column is string, and that you're doing this in a Transformer stage, then a suitable expression is

Code: Select all

"'" : InLink.TheColumn
...

Thanks ray.That helped me in solving my problem.
sun
Post Reply