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
Cloverleaf
Command line Smat
tim-jipson
Are there any Cloverleaf commands to access SMATDB files?
Basically I want to delete all A08s from SMAT older than a week, maybe a couple days. We regularly have 100k adt in a single daily smatdb file, I can't think of a single time that I've been asked about an A08 older than a week and removing them would speed up searches for other msg types dramatically.
Find more posts tagged with
Clovertech
Comments
Jim Kosloskey
Charlie Bursell wrote the attached some time ago. I believe this is the latest version.
hcismatdb.tcl
tim-jipson
I actually just found "smatdbdelete", I think this is what I need. Would anyone have the proper syntax for this command?
tim-jipson
Thanks Jim, I'll check that out
tim-jipson
Jim, All that script does is read messages out of smat and then creates a new file. I need to modify the smatdb file. I opened a ticket with Infor, hopefully I'll get some useage info for smatdbdelete.
Jim Kosloskey
The conundrum here for Infor, I suspect, is SMAT is supposed to be the accurate representation of the messages that passed through that Thread. Allowing deletion of entries would open up the question of the accuracy of the SMAT.
What would happen if you had to prove a message you deleted actually traversed the thread? Will you keep another audit repository for that situation? How will that fit into the methodology your shop uses to troubleshoot? You may have already thought of the above so ignore if you want.
Jim Kosloskey
Tim,
I found some help file that indicates:
smatdbdelete smatdbhandle ?deleteCondition?
The deleteCondition is to be an SQL WHERE statement describing the conditions for deletion.
I suspect this module is to be called via another Tcl Proc so you will need to construct the wrapper. Perhaps use Charlie's code modified to add a deletion option and exploit the other code to get to the point of deletion.
Jim Kosloskey
There is more regarding the Tcl API for SMATdb here:
docs/clis_2022.09_clfisolh_op_en-us.pdf
Find that file in your /integrator directory path as indicated above. This is what is available in 2209, hopefully it exists in your release. If it does not email me and I will see what I can do.