Hitachi Vantara Pentaho Community Forums
Results 1 to 4 of 4

Thread: Append fiels in filename

  1. #1
    Join Date
    Oct 2007
    Posts
    25

    Default Append fiels in filename

    Hi all.

    Is there any possibility of appending a value that is in the transformation to a filename?

    I have a stream with xml blocks in each row. The rows are sent to Text File Output, generating one file per row. I need to put in the text file name one id that comes in each row....


    Thanks in advance,
    Gustavo

  2. #2
    Join Date
    Oct 2007
    Posts
    25

    Default

    Not possible? I'm using 2.5.2 version.

  3. #3
    Join Date
    May 2006
    Posts
    4,882

    Default

    Sure it's possible with some extra constructions, but not that easy... have a look at the process all tables examples under the samples directory.

    Regards,
    Sven

  4. #4
    Join Date
    Oct 2007
    Posts
    25

    Default

    Niiiiiice!

    In case someone wants to do this, I'll save some time:
    - Call a job for every input row;
    - In the job's transformation, define a variable with the value to be appended in filename;
    - Use variable in the output file filename definition.

    Tks mate!

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.