You are not logged in.
Announcement
Unanswered posts
|
Thanks shong for taking the time to devote to me ... but I can not solve my main problem. Now I'll explain in detail my work:
First I am a Java programmer, and my job is to make statistics about jobs that builds. These statistics relate primarily to each component the number of rows local input and output, and overall the number of rows in input and output for the entire job.
In the end I should output these statistics (eg. GI/LO, GI/GO.....ie GlobalInput / LocalOutput ...)
Is a long time since TOS study and its features but I can not find the right path for my work ...
Thank you for your continued help.
Hello
Here, i show you another method, please follow my steps as My screenshots shows.
BTW, are you a Java developer?
Best regards
shong
The reason of my problem is that Overwriting always the same global variable, so I always print the last value ... how do I print all the values?
Thanks
Hello
Can you export your job and send it to me via email?
Best regards
shong
Excuse me but I have the same problem as previous ... I print only the last line in the file ..
Hello
Yes, you need check 'append' option on tFileOutputDelimited component.
Best regards
shong
Sorry, you just have to append in the component tOutputDelimited ...
The problem is that if there are 2 or more tFileInputDelimited he overwrites the data are only the latest ...
Thanks for the answers.
Hello
Before you print the data on the console, you can put it to a global var, eg: globalMap.put("nb_tFileInputDelimited", thePrintedValue)
then using a tFlxedFlowInput to define one row, set the value of column as: (String)globalMap.get("nb_tFileInputDelimited), link it to tFileOutputDelimited, outout or append the value to a file.
Best regards
shong
Number of row of tFileInputDelimited 3
Number of row of tFileInputDelimited 4
Number of row of tFileOutputDelimited 3
Number of row of tFileFilterRow 3
With these data I do my statistics ...
Hello
Now I want to save these data printed on the console to a text file
What's data do you print on console? example?
Best regards
shong
Then I explain ... before I changed the code of some components of TOS and I did print the data to display on the console TOS. Now I want to save these data printed on the console to a text file ... you can do it automatically?
Hello
... is this possible?
you can save data to the console in a file
Can you describe your question with more readable info? So, I know exactly what you are doing and expecting.
Best regards
shong
Excuse me very much, I wanted to say during the execution of the job ... is this possible?
Hello John
Sorry, It looks I always be fuzzy on your question. compile-time? we can't output any data to console or any target before the job running.
Best regards
shong