Determine the end of file

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Determine the end of file

  • Creator
    Topic
  • #54188
    Hina Siddiqui
    Participant

      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. 🙂

    Viewing 1 reply thread
    • Author
      Replies
      • #80486
        Peter Heggie
        Participant

          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.

          Peter Heggie

        • #80487
          Russ Ross
          Participant

            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.

            Russ Ross
            RussRoss318@gmail.com

        Viewing 1 reply thread
        • The forum ‘Cloverleaf’ is closed to new topics and replies.