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
Determine the end of file
System
Originally posted by Hina Siddiqui
Hi
In an FTP to FTP connection, is there a way to find out the end of the file. On of the ways to do so in Cloverleaf is to wait for the engine to be idle. Is there is any other suggestion ?
I appreciate the help.
Find more posts tagged with
Clovertech
Comments
Peter Heggie
This is usually a question with a procedural answer instead of a technical answer. I am assuming you are questioning whether all of a file is available for moving, or if only part of the file is there. So the answer to that question is that there is no technical way to know, aside from waiting for file growth to end.
A good procedural answer is to ask the sender to create the file with a different, temporary name, and then after the file is completely created, to then rename the file to the name expected by the FTP operation. Many FTP products have that option, including Cloverleaf.
Russ Ross
I use the trick mentioned above of having the file renamed to what I'm looking for when it is ready to FTP transfer or process.
Then I like the file to have a trailer record to assure I got the whole file and check that the trailer record totals match the number of entries in the file.
Then I key off that trailer record to know I've hit the EOF and can shut down the batch xlate process.
This way my batch process runs once a day at a scheduled time for only 2 - 10 minutes instead of always being tunred on.