FTP – 2 styles (eof & nl) delivered to the same director

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf FTP – 2 styles (eof & nl) delivered to the same director

  • Creator
    Topic
  • #55066
    Traci Zee
    Participant

      I have inbound files that have either or at the end.

    Viewing 4 reply threads
    • Author
      Replies
      • #83969
        Jim Kosloskey
        Participant

          Do the different styles have identifiable file name constructs so that one could identify a NL vs a eof by file name?

          If so then using dirparse on 2 different threads each having one of the styles will work.

          Of course getting the providing system to be consistent is the real answer.

          Another option might be to in the dirparse UPOC Tcl to process each file prior to picking it up changing one of the styles, then let the thread pick up the files.

          email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.

        • #83970
          Traci Zee
          Participant

            Thanks Jim!

            There isn’t a file name difference.  Turns out that there is an intervening system (out of my control) that gathers the files and presents them to my system.  We are working with the customer to address from their side.

            I was just working for a preventative solution within Cloverleaf so that this doesn’t happen in the future.

          • #83971
            Brent Fenderson
            Participant

              Traci, This looks like it will work correctly in version 6.1.2.

              Feature:  File, Fileset-Local, and Fileset-FTP does not get the last line where there is no trailing newline (13094)

              Description:  File, Fileset-Local, and Fileset-FTP do not get the last line where there is no trailing newline.

              This issue no longer happens. File, Fileset-Local, and Fileset-FTP now get the last line even if there is no trailing newline.

            • #83972
              Traci Zee
              Participant

                Brent,

                Thanks for the information!

                Traci

              • #83973
                Charlie Bursell
                Participant

                  Seems to me you could simply define as eof and strip off newline if there

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