Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi there,
I'm creating an automated job that will process an input file, place the output in a predetermined directory, and send an email to the department that submitted the input file.
I want the email to contain several statistics, such as:
[list=*]
I know this is a rather vague requests, but does anyone have any ideas of how I could capture these numbers and enter them into the automated email? I was assuming I would generate global variables that would capture those values during the job, and then I could call those variables in the email.
Is there a way to capture the result of the MySQL COUNT function and place it inside a global variable, or should I take a different approach to record the number of filtered rows?
Secondly, I was assuming I could use tJava or tJavaFlex with a globalMap.put to write a java code that would return the number of non-null values in two particular columns ("LenderFlag" and "CorrFlag"). I have precious little knowledge of java, so I'm not sure if such a code exists. Is there a better way to capture that number?
Let me know if I need to provide pictures of my job or provide more information about my goals and process needs. Thanks!
int c1=0;
int c2=0;
if(row1. LenderFlag!=null){
c1=c1+1;
}
if(row1. CorrFlag!=null){
c2=c2+1;
}
globalMap.put("yourKey2", c1);
globalMap.put("yourKey3", c2);