tcl script to ftp from Cloverleaf to a ftp library

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf tcl script to ftp from Cloverleaf to a ftp library

  • Creator
    Topic
  • #53321
    Mary Bodoh-Stone
    Participant

      Hi,

       I am wondering if anyone could help with something I am trying to do.  From Cloverleaf I want to ftp to an IBM system and grab a flat file that looks like this:

      DET|1815123|550667|6530380|4210048|1|20110802|XRCHEST1|71010||R67708|7100|786.5||||LH|433017460|||||000692|I|20867|000060|1602|||20110722|A|||4|

      DET|1815058||653203-0|4261671|1|20110802|MRELBRTWOW|73223||R59154|7300|726.30||||LH|433036908|RT||||000123|O|19745|000003|1608||LH|||||4|

      These are IDX charges that I am going to run through an xlate and create a tab delimited file to post to our HPP clinic system.

      I have the fileset-ftp protocol setup on the thread but I what I really need help with is the tcl script.   The file resides in a FTP library.   I just want to “get” this one file.  

      Any help would be appreciated.  Thanks.

      – Mary

    Viewing 0 reply threads
    • Author
      Replies
      • #77275
        Robert Kersemakers
        Participant

          Hi Mary,

          You don’t need a tcl-script to get the file from the IBM server. Just use the Fileset-ftp protocol.

          In tab Fileset Options, insert your Inbound Directory and Style; I think you will need ‘nl’ as style. Under Scheduling, put in values on how often you want to scan for a file and how many lines you want to read once a file has been found.

          In tab FTP Options, you can specify login information, and host (ip-adress) information. You normally don’t need to change anything in the block FTP Options, but if you only need specified file(s) from the directory, you can do this in Dir List Command: use ‘nlst *.txt’ to pick up all *.txt files.

          Hope this helps.

          Zuyderland Medisch Centrum; Heerlen/Sittard; The Netherlands

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