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
Counting files in a FTP
System
Originally posted by Jawad Chaudhry
I need some help in creating a report that will count the number of files transmitted using FTP daily. I guess I just need some guidance or an outline of how to obtain a solution.
Find more posts tagged with
Clovertech
Comments
Jim Kosloskey
jawad,
Do you want to count the files found, files found and processed, or the files sent?
System
Originally posted by Jawad Chaudhry
I would like to count the files that have been sent.
david_barr
You need to count them by thread and add up the total.
You can use "hcimsiutil -dd " to print the message counts of each thread name, or you could use a script to count the messages in the .idx file of each saved message file. Another option is to put something in the "send ok" proc of each outbound FTP thread that increments a counter.
Jim Kosloskey
Jawad,
You want the total of the files not the total messages - is that correct?
If so then I woul place a Tcl proc in the Outbound thread either Outbound Tps or Send OK Tps. You will need to check the metadata for File name change to know when to add one to a counter. The use of a counter file might be handly.
If you have a one to many then you will need to do that for each outbound.
If you know the number of files found and processed is the same as the number of files sent (for example a one to one) then anothr location could be the Inbound Tps Delete stack where a Tcl proc could increment a counter each time a file is to be deleted.
One challenge in any case is the need to know when to reset the counter.
david_barr
If you are using fileset-ftp protocol with a style of single or eof, then the message count should match the number of files. But Jim has the right answer if you're putting multiple messages in each file.
edit: I guess it actually depends on whether or not you are picking unique filenames or using the append option with a single filename.