Hitachi Vantara Pentaho Community Forums
Results 1 to 3 of 3

Thread: how to pass a value to a parameter in a transform.

  1. #1

    Default how to pass a value to a parameter in a transform.

    Hi ,
    I want to pass max(numeric field) and min(numeric field) to a parameter defined in the job through a transform to do calculation.

    how can i do this so that the max and min values are available to all the transforms in the job.

  2. #2
    Join Date
    Jun 2012


    In the transformation that determines the min and max value, use a Set Variables step and select the scope according to your requirements.
    So long, and thanks for all the fish.

  3. #3
    Join Date
    Feb 2011


    when I started reading I thought "why not a simple 'copy rows to result'?" - but then I saw the "available to all transforms in the job". Variables is your way to go.
    Just don't forget to set the variable scope appropriately - parent job, grand-parent job, root job - as you need it
    Join us on IRC! =)

    Twitter / Google+ / Timezone: BRT-BRST
    BI Server & PDI 5.4 / MS SQL 2012 / Learning CDE & CTools
    Windows 8 64-bit / Java 7 (jdk1.8.0_75)

    Quote Originally Posted by gutlez
    PLEASE NOTE: No forum member is going to do your work for you. We will help you sort out how to do a specific part of the work, as best we can, in the timelines that our work will allow us.

    I'm no expert.Take my comments at your own risk.

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.