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
fileset-local append file tcl
Stewart
How can I append the contents to the file instead of overwriting the file every time a new msg comes in?
msgmetaset $mh DRIVERCTL "{FILESET {{OBFILE $new_name}}}"
Find more posts tagged with
Clovertech
Comments
Vince Angulo
As long as the $new_name variable does not change with every transaction, if you check "Append data" in the file protocol Outbound Properties, it should work.
Keith McLeod
I concur. I use things like the date from MSH.7 without the time as part of the filenaming. By virtue of the date changing from the MSH.7 value, I get daily batches....that I can reproduce. And yes check append.
Rob Abbott
Checking the box in the GUI is the best way, this will set the default to what you're looking for.
You can also control the append behaviour on a per-message basis by setting the FILSET.OBAPPEND key, e.g
{FILESET {{OBFILE filename} {OBAPPEND 1}}}
Stewart
I had that checked in the properties. However it still seems to be recreating the file. I need a new file everyday and am naming on the date. I've added the OBAPPEND as suggested to see if this will work.
set systemTime [clock seconds]
set datetimestring [clock format $systemTime -format %Y%m%d]
set new_name ""
append new_name $name $datetimestring $suffix
msgmetaset $mh DRIVERCTL "{FILESET {{OBFILE $new_name}{OBAPPEND 1}}}"
lappend dispList "CONTINUE $mh"
Charlie Bursell
I have had better luck doing things like this using the upoc protocol in both the read and write mode with a timer. Set the timer in the read mode to when name should change. Simply add to the file in write mode using the append mode with the file command.
In the read mode, when triggered you could rename the file and even move completed file to another location.