Reputation: 349
I would like to get the total record count from the get rows from result output and then pass it to parent job.
Any suggestions ?
Upvotes: 2
Views: 25537
Reputation: 3294
this will be easily achieved adding a Get Value From Sequence step
if you name, for instance, a new var (see name of value on screenshot) called "counter" now you will have a row counter on this var
at the last row you get this counter value and you get all the rows processed in the trans.
Upvotes: 1
Reputation: 3968
Try using "Group BY" or "Memory Group By" step to get the total count of the rows. select the type as : Number of rows in the step and it will return you the total count.
You can read the wiki also : http://wiki.pentaho.com/display/EAI/Group+By
Hope this helps :)
Upvotes: 3