View previous topic :: View next topic |
Author |
Message |
Jyotsna_mallipeddi Beginner
Joined: 04 Oct 2006 Posts: 1 Topics: 1 Location: Phoenix
|
Posted: Thu Mar 08, 2007 1:56 am Post subject: To insert ASCII characters into DB2 ZOS |
|
|
Hi
I am trying to insert special characters like & # ; which are part of my text. Basically trying to insert a French text into a VARCHAR field. Below is the query which I am trying thru a JCL using IKJEFT01 PGM
INSERT INTO P65.MESSAGE_TEMPLATE
VALUES(998,'124','CA','FR','A','Des amaméliorations');
But the above sql is giving an error saying illegal symbol & found in the text.
Please suggest is there a way for me to insert such data in mainframe DB2 database.
Thanks in advance
Jyotsna |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
Posted: Thu Mar 08, 2007 9:21 am Post subject: |
|
|
Jyotsna,
You shouldn't have any problem inserting the values into a VARCHAR field unless you have fieldproc or editproc on the column. try inserting the same values using spufi.
Also I noticed that there is no & in your insert statement shown above. So you did not show us the entire sql or the message is wrong.
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
|
videlord Beginner
Joined: 09 Dec 2004 Posts: 147 Topics: 19
|
Posted: Thu Mar 08, 2007 5:40 pm Post subject: |
|
|
How can you input ' |
|
Back to top |
|
|
|
|