infor.com
concierge
infor u
developer portal
documentation central
customer center
Posts
Categories
Groups
ERPs
CSD
FSM/HRT
LN
M3
Syteline/ CSI
Hubs
Developer
Healthcare
Hospitality
Public Sector
Onboarding
Release Center
CloudSuites
Aerospace & Defense (LN)
Automotive (LN)
Chemicals (M3)
Corporate (FSM/HRT)
Distribution (Sx.e/CSD)
Distribution Enterprise (M3)
Engineering & Construction (LN)
Fashion (M3)
Food & Beverage (M3)
Healthcare (FSM/HRT)
Industrial (Syteline/CSI)
Industrial Enterprise (LN)
Manufacturing (M3)
Public Sector (FSM/HRT)
Solutions
Supply Chain Management (SCM)
Human Capital Management (HCM)
Events
Groups
User Groups
Your Groups
About
Email Community Support
Infor News
Migrated Forums
Home
Clovertech
Clovertech Archive
Read Only Archives
Cloverleaf
Cloverleaf
regsub
System
Originally posted by Bob Schmid
want to replace every occurrence of "S" in all of the obx segments with the character ";"
dont want to replace S when found in NTES.....other segments
regsub -all ...?
THanks
Find more posts tagged with
Clovertech
Comments
Charlie Bursell
Easy enough in Tcl, a bit harder in Xlate
assuming you have done the normal HL7 stuff
set map
foreach loc [lsearch -all -regexp $SEGMENTS {^OBX}] { set obx [string map $map [lindex $SEGMENTS $loc]] set SEGMENTS [lreplace $SEGMENTS $loc $loc $obx]}msgset $mh [join $SEGMENTS r]return "{CONTINUE $mh}"
System
Originally posted by Bob Schmid
Thanks Charles!!
I was thinking youd be giving me one of those 1 line regsub extravaganzas..but this works !!!
Appreciate your Sunday time!