From lindah@epocrates.com Fri, 18 Jan 2002 15:50:10 -0800 From: "Hagedorn, Linda" Date: Fri, 18 Jan 2002 15:50:10 -0800 Subject: RE: Need idea to strip tabs (chr(9) hex 9) and carriage return (c Message-ID: MIME-Version: 1.0 Content-Type: text/plain Title: Need idea to strip tabs (chr(9) hex 9) and carriage return (chr(13) hex 0D) from fields I couldn't get translate to just strip off the chr(13), but was able to using this:   update ama_log set medschoolid = trim(trailing (chr(13)) from medschoolid ) where medschoolid like '95701%' ;  update ama_log set medschoolid = trim(trailing (chr(13)) from medschoolid ) where medschoolid like '95702%' ;     Before:   'REG.AMA_LOGMEDSCHOOLID TRIM(TRAIL SUBSTR(RAWTOHEX("MED----------------------- ---------- --------------------REG.AMA_LOG MEDSCHOOLID 95701      39353730310DREG.AMA_LOG MEDSCHOOLID 95701      39353730310DREG.AMA_LOG MEDSCHOOLID 95702      39353730320DREG.AMA_LOG MEDSCHOOLID 95704      39353730340D      After: 'REG.AMA_LOGMEDSCHOOLID TRIM(TRAIL SUBSTR(RAWTOHEX("MED----------------------- ---------- --------------------REG.AMA_LOG MEDSCHOOLID 95701      3935373031REG.AMA_LOG MEDSCHOOLID 95701      3935373031REG.AMA_LOG MEDSCHOOLID 95702      3935373032REG.AMA_LOG MEDSCHOOLID 95704      39353730340D                 -----Original Message-----From: Carle, William T (Bill), ALINF [mailto:wcarle@att.com]Sent: Friday, January 18, 2002 12:25 PMTo: Multiple recipients of list ORACLE-LSubject: RE: Need idea to strip tabs (chr(9) hex 9) and carriage return (chr(1 Linda,       I just did something like this yesterday. You will need to use the TRANSLATE function. So you can use an SQL statement like:   update set fld1 = translate(fld1,chr(09),’-‘);       Make sure you only have one weird character in the field though. I actually and a carriage return and a new line back to back and, of course, you can’t see them. You might want to use the DUMP function to look at what is really in the field. Good luck!