Post a reply

Write your message and submit

Options

Click in the dark area of the image to send your post.

Go back

Topic review (newest first)

jonny8516
2009-11-28 17:00:23

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.

shong
2009-11-28 15:52:33

Hello
Here, i show you another method, please follow my steps as My screenshots shows.
BTW, are you a Java developer?

Best regards

         shong

jonny8516
2009-11-28 15:15:18

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

shong
2009-11-28 15:15:02

Hello
Can you export your job and send it to me via email?

Best regards

         shong

jonny8516
2009-11-28 15:07:45

Excuse me but I have the same problem as previous ... I print only the last line in the file ..

shong
2009-11-28 15:06:35

Hello
Yes, you need check 'append' option on tFileOutputDelimited component.

Best regards

         shong

jonny8516
2009-11-28 14:58:58

Sorry, you just have to append in the component tOutputDelimited ...

jonny8516
2009-11-28 14:57:04

The problem is that if there are 2 or more tFileInputDelimited he overwrites the data are only the latest ...
Thanks for the answers.

shong
2009-11-28 14:34:06

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

jonny8516
2009-11-28 12:53:13

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 ...

shong
2009-11-28 12:47:31

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

jonny8516
2009-11-28 12:37:48

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?

shong
2009-11-28 12:25:53

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

jonny8516
2009-11-28 12:18:42

Excuse me very much, I wanted to say during the execution of the job ... is this possible?

shong
2009-11-28 11:54:07

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

Board footer

Powered by FluxBB