Hitachi Vantara Pentaho Community Forums
Results 1 to 2 of 2

Thread: Beginner Question: Adding a string constant to a field

  1. #1
    Join Date
    Nov 2013

    Default Beginner Question: Adding a string constant to a field

    Hi Everyone,

    Here's what I am trying to accomplish in Kettle 4.4 CE (I'm going from DATABASE --> TEXT FILE), hopefully someone can help:

    This is the pipe-delimited text file output I have right now:

    This is the text file output I want:

    I used the 'String operations' transformation step to add "currency:" but it gave me an error when I tried to add "amount" to the left of the number/dollar value. I'm sure there's a way around this, can anyone suggest what step I should use? Hopefully no coding is necessary. Thanks very much.


  2. #2
    Join Date
    Jun 2012


    Sometimes you can't just concatenate a String and a Number.
    Sure, you could convert the Number to a String field using the Meta-data tab of a Select Values step, but I would use a Java Expression:

    Name:  UDJE.png
Views: 75
Size:  6.7 KB
    So long, and thanks for all the fish.

Tags for this Thread

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.