Page 1 of 1

Invalid Quotes

Posted: Tue Apr 26, 2005 5:54 am
by vinaymanchinila
Hi,
I am writing into a sequential file and I get this error after 196054 records!.

" invalid quotes, row 196054 column ZLGSERNO = "MCEEO811400830"" the field ZLGSERNO is SQL type Char, 25 length and Nullable.
Any help is appreciated.
Thanks,

Posted: Tue Apr 26, 2005 6:00 am
by vinaymanchinila
Also is there a way I can use EReplace or Change function to replace any " in the field by blank.

Posted: Tue Apr 26, 2005 6:06 am
by Sainath.Srinivasan
There are more quote char in that row enclosing a particular field value. Look into the file for the mentioned row.

To remove any quote char as part of the data, you can do
EReplace(YourString, '"','') Or Trim(YourString, '"', 'A')

Posted: Tue Apr 26, 2005 6:12 am
by vinaymanchinila
Hi,
If I use EReplace(YourString, '"','') Or Trim(YourString, '"', 'A') am I replaceing double quotes (") or blanks?
Thanks,

Posted: Tue Apr 26, 2005 6:13 am
by Sainath.Srinivasan
You are removing the double-quotes.