PDA

View Full Version : Newbie needs some help with parameters



KTG17
02-11-2015, 01:26 PM
Hi guys, Hope this is the right place for this. I've been asked to develop a Kettle using Pentaho Data Transformation that will kick off a script and then pull data out of a table and export it to excel. The process needs to take two parameters (lets say AccountNumber and Date). I know how to pull data to Excel using Table Input query and the Microsoft Excel Writer, but the problem is I need some complicated steps to happen before the Input Query kicks off, which involves some truncating of tables, multiple SQL blocks, and so on. And the parameters have to be passed to that first step.

I assume I would use the Execute SQL Script step, but I have no idea how to set the variables prior to the run of this step, nor be sure they are used throughout the process as the same ones will be needed when I do the Table Input. I get the launch window where I can set the vaiables there, but don't see how they would be assigned in the SQL Script part.

Any ideas? Many thanks ahead of time.

KTG17
02-13-2015, 03:56 PM
Anyone?