Hitachi Vantara Pentaho Community Forums
Results 1 to 3 of 3

Thread: How to concatenate a string like the below example in spoon

  1. #1
    Join Date
    Sep 2012
    Posts
    25

    Default How to concatenate a string like the below example in spoon

    Hi,

    i want to concatenate a string like below in spoon

    '%' || Variable || '%'

    How can i do this using PDI ?
    Thanks for your help

  2. #2
    Join Date
    Sep 2011
    Posts
    26

    Default

    If you are doing it in a "Table Input" it depends on your DBMS. Also, you can do it in a JavaScript step with JavaScript syntax like:

    var newVar = "%" + variable + "%";

  3. #3
    Join Date
    Apr 2008
    Posts
    1,771

    Default

    There's also a step called "Concat Fields"!

    http://wiki.pentaho.com/display/EAI/Concat+Fields

    Mick

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.