FTP Outbound – Single messages-files

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf FTP Outbound – Single messages-files

  • Creator
    Topic
  • #50406
    Donna Snider
    Participant

      Cloverleaf 5.4.1  AIX

      I have been fortunate to be able to use TCP/IP in developing interfaces for the past several years.  Guess my luck has ran out 🙂  and I could use some help.

      Receiving application requires 1 message per file written to a shared directory.  I read the FTP-fileset section in the Cloverleaf User Guide.  I’m not sure this is the best choice.  Also, don’t know if it would allow writing multiple files to a directory and would have to be able to use/alter the file name when writing the file.  The receiving app will pick up all files in the directory (file names doesn’t matter) when user manually invokes a query.

      Any suggestions?

      Thanks!!

    Viewing 2 reply threads
    • Author
      Replies
      • #66012
        Jim Kosloskey
        Participant

          Donna,

          You are on the right track.

          You would either use Fileset/Local or Fileset/FTP depending on whether you create the files on your local drive, a mapped drive, or FTP to another system.

          You will need a Tcl proc to modify the file name with each message.

          There are discussions on this forum regarding ‘num files’ (the old name for them) and you can glean a lot of information from those discussions. Some folks may have even offered up versions of their procs.

          There is a proc which comes distibuted that can be used as the base for constructing your proc (I don’t recall the name or its location – might be in the contrib directory).

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

        • #66013
          Mark Thompson
          Participant

            Donna,

            There is a numfile.tcl proc in $HCIROOT/tclprocs directory.  If you put it in the output data TPS and set the NAME arg, it will produce “numbered” output files.  The proc is in CL 5.4.1 and later.  I’m not sure about earlier versions.

            - Mark Thompson
            HealthPartners

          • #66014
            Donna Snider
            Participant

              Thank you for your replies.

              They are GREATLY appreciated!!

              Donna

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