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
Search for &
Mike Campbell
Cloverleaf 6.0.2 on AIX
So, within the xlate, I'm trying to determine the first occurrence of an ampersand within the OBX-5 field.
The code is: set COUNT [ string first & $xlateInVals ]
Count is always -1 even though I know there is an & in the message.
Any thoughts? I was hoping the escape character before the & might have done the trick, but nope.
Thanks.
Mike C.
Find more posts tagged with
Clovertech
Comments
jcobane1
Mike,
Because the ampersand is an HL7 encoding character, the engine is parsing the data on the ampersand, thus xlateInVals does not contain the ampersand.
Mike Campbell
Looks like doing an llength on the xlateInVals will do the trick.
set COUNT [ llength $xlateInVals ]
Thanks Jim K. for the hint!
System
Originally posted by Troy Morton
For finding and/or removing special characters in a message, I always prefer to use a TPS proc. This way you have the entire message at your disposal and you don't have to worry about how Cloverleaf is parsing the HL7 fields.
I have written a tps proc before that will allow you to specify characters to remove from an HL7 message as well as which fields to search for the unwanted characters. This evening, I'll see if I can find it and post it to this thread.