Hitachi Vantara Pentaho Community Forums
Results 1 to 2 of 2

Thread: How to clear environmental variable?

  1. #1
    Join Date
    Sep 2014
    Posts
    175

    Default How to clear environmental variable?

    Hello --- I use environmental variables for Database connection properties in the .kettle properties file.

    I need to change a database instance from "blah blah" to blank. Just, blank. Nothing. Nada.

    Setting a variable to (blank) doesn't seem to work in jobs. I'm using version 7.1

    Setting a variable to anything changes it. However setting it to blank is like "do nothing, keep old value."

    How do I ACTUALLY set an active variable to blank or clear it out? A javascript sub-job or something?

  2. #2
    Join Date
    Sep 2014
    Posts
    175

    Default

    Alright I'm using the javascript job entry parent_job.setVariable("MyVariable","") -- but really, not sure why a set variable function can't be set to blank and "clear" the variable potentially. Hmm.

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.