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 39353730310D REG.AMA_LOG MEDSCHOOLID 95701 39353730310D REG.AMA_LOG MEDSCHOOLID 95702 39353730320D REG.AMA_LOG MEDSCHOOLID 95704 39353730340D After:
'REG.AMA_LOGMEDSCHOOLID TRIM(TRAIL SUBSTR(RAWTOHEX("MED ----------------------- ---------- -------------------- REG.AMA_LOG MEDSCHOOLID 95701 3935373031 REG.AMA_LOG MEDSCHOOLID 95701 3935373031 REG.AMA_LOG MEDSCHOOLID 95702 3935373032 REG.AMA_LOG MEDSCHOOLID 95704 39353730340D
|
Title: Need idea to strip tabs (chr(9) hex 9) and carriage return (chr(13) hex 0D) from fields
- RE: Need idea to strip tabs (chr(9) hex 9) and carriage re... Hagedorn, Linda
- RE: Need idea to strip tabs (chr(9) hex 9) and carria... Hagedorn, Linda
- RE: Need idea to strip tabs (chr(9) hex 9) and carria... Jared . Still