Hitachi Vantara Pentaho Community Forums
Results 1 to 3 of 3

Thread: How to send file in filenames result with ftp?

  1. #1
    Join Date
    Sep 2010
    Posts
    1

    Default How to send file in filenames result with ftp?

    Hi

    I'm trying to send a file with ftp to client server. In transformation, file is generated from table and file name has "Includedatein filename?" as well as "add filenames to result" checked.

    My question is. How do I get file name from result in parent job?

    Thanks

  2. #2
    Join Date
    Sep 2007
    Posts
    834

    Default

    The only way to specify filenames in the "Put a file with FTP" entry is typing the full name or providing a variable.
    So in your transformation you can set a variable with the name of the file, and then use it in the job.

  3. #3
    Join Date
    Jun 2007
    Posts
    260

    Default

    Maris is correct. However, if you are placing the filename in a variable you cannot do this in a single transformation, you will have to convert this to a job <-> transformation scheme.

    Code:
    myjob (.kjb)
      - start
      - set_filename (.ktr)
         - build_filename (eg on javascript step)
         - set_variable (with parent scope)
      - send_file (.ktr)
          - ftp step <--- user variable here
    Last edited by crafter; 09-23-2011 at 04:47 PM. Reason: formatting

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.