Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
datajunkie1000
Contributor III
Contributor III

Custom log messages from a tAggregateRow

Hi All

I have a tAggregateRow component which outputs the rowcount of a specific column. How can I log a custom message stating "[x] rows processed"?

Here is the subjob with the tAggregateRow

0695b00000G5VnSAAV.png

and here is the detail of the tAggregateRow

0695b00000G5Vo6AAF.png

Thanks

Labels (2)
3 Replies
Anonymous
Not applicable

After tAggreGateRow, you can add a tJavaRow and output the messages like:

tAggreGateRow--main--tJavaRow

 

on tJavaRow:

System.out.println("["+input_row.acd+"]" rows processed";

 

datajunkie1000
Contributor III
Contributor III
Author

Hi

Getting an error "input_row cannot be resolved to a variable" - how do I proceed with this?

 

corentin1
Contributor III
Contributor III

global variable "tDBOutput_1_NB_LINE" could also be used in your case I think (it will show the number of lines processed by the tDBOutput component). You can use it in a tJava linked with onSubjobOK from your current subjob.

Then simply yse System.out.println(((Integer)globalMap.get("tDBOutput_1_NB_LINE)));

(see "outline" tab in studio for exact syntax)