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
regexp to be used in SMAT tool (text files) for NO ORC
System
Originally posted by Bob Schmid
Want to search SMATS for ORU's that do NOT contain an ORC
have tried some "not conditions" and still haven't found what im looking for :?
Find more posts tagged with
Clovertech
Comments
Keith McLeod
What tool?
I would add all ORU^R01 to your view and then remove those containing rORC. Let me know if this helps.
Charlie Bursell
In Tcl, the following expression using negative look-ahead will work. I have not tried it with SMAT
{ORU^R01(?!(.*rORC.*))}
System
Originally posted by Bob Schmid
Both good ideas.
I haven't tried the regexp yet...but will shortly
Thanks fellas! for taking the time!
Bob
Your reward is great (in heaven!)
Keith McLeod
On the SMATDB side of the equations it appears like charlies negative lookahead worked.....
ORU^R01(?!(.*rORC.*))
Also performed with HL7 and Advanced.
Charlie Bursell
You must remember that Tcl regexp default is that a newline is simply a character so the regexp would treat the whole file as as string. I think SMAT reverses this and, by default, uses newline as end of a string.
So for the flat file you need to do something like:
regexp -line -- {REGEXP}
The above would only match the first instance found so for all you would need something like:
set LIST [regexp -all -inline -line -- {REGEXP}]
Of course this assumes your flat file is saved as newline delimited. It would not work against a .msg file of len10 file. That would really get hairy!