Hi,
How can assign 'rama's' to a variable in transformation derivation. I tried 'rams\'s' etc.,
Thanks
Quote char handling
Moderators: chulett, rschirm, roy
Quote char handling
Thanks
MRVSR
MRVSR
Handling quotes and special characters
I have both quotes ' " in the value sting. ex: ' "&fieldname#1"="rama's" ' Please let me know how to handle these quotes and special characters.
Thanks
MRVSR
MRVSR
Re: Handling quotes and special characters
Simple assignment should not be a problem. You can create stage variables as sQuote = "'" and dQuote = '"' and use them to concatenate wherever necessary.
It took me fifteen years to discover I had no talent for ETL, but I couldn't give it up because by that time I was too famous.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Backslash may also work as a quote character. It does in server jobs. Try it and let us know.
Code: Select all
\"&fieldname#1"="rama's"\
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.