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
Simple fileset-Local Proc
Max Drown
We have a very complex fileset-local tps script that we use for watching a directory for batches of files. I now have a need to simplify the process. Does anyone have a
very simple
fileset-local proc that they wouldn't mind sharing? Is a tps proc even necessary?
Details: An application ftp's a batch of .pdf files at 1am. I want to pick up and process the files one a time.
Find more posts tagged with
Clovertech
Comments
Jim Kosloskey
Max,
If al you need to do is get every file in the directory then no dirpars or delete Tps proc is needed.
However, if for any reason only some of the files need to be selected, then at least a dirparse is probably needed. If you have a file you need to get but should not be deleted in that set, then a delete proc will be needed as well.
I have sent you some reusable procs we use here.
Max Drown
What are the dangers, if any, of using the fileset-local protocol without a custom tps proc?
Jim Kosloskey
Max,
If you want EVERY file that is in the referenced directory and you want EVERY file retrieved deleted after it is processed, that is the activity the Fileset and Fileset/FTP protocols default to without any procs at dirparse and delete.
If that is not what you want, for example you only want some of the files in the directory at directory parse or you don't want some of the files that are retrieved during directory parse then processed deleted, or if you want to rename or move or archive the files before processing (after directory parse) or prior to deleteion you will need to have Tcl procs at either the Directory Parse and/or File Delete UPoCs.
So with no procs assuming dira has files a, b, and c at the time the directory parse is executed in the Fileset Protocol, each of those files will be read, and each record in each file will become a message to Cloverleaf(R). As a file is finished process (file a first) that file is then deleted (the records of that file have passed through Cloverleaf(R) to wherever you have directed them).
File a is processed, then deleted, file b is processed then deleted, file c is processed and delted; directory parse happens at the next interval and if there are more files they are processed in the same manner.
Max Drown
Good info. Thanks, Jim.
Max Drown
I have a test fileset-local thread set up with no tps procs. I'm seeing this error over and over again. I'm guessing it's related to my samba mount issue, but, just to make sure, has anyone ever seen this error?
[fset:read:ERR /0: [fset:read:ERR /0: