#1 2009-11-28 10:47:44

jonny8516
Member
Registered: 2009-10-11
Posts: 32

Problem with Console

Hello everyone, you can save data to the console in a file at compile-time?
Thanks to everyone for the answers.
John

Offline

#2 2009-11-28 11:54:07

shong
Talend team
Registered: 2007-08-29
Posts: 10297
Website

Re: Problem with Console

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


Email:shong@talend.com
Choose Talend, Enjoy Talend!
New & Event: Talend Help Center
Talend-->the leader of open source data management and application integration solutions!

Offline

#3 2009-11-28 12:18:42

jonny8516
Member
Registered: 2009-10-11
Posts: 32

Re: Problem with Console

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

Offline

#4 2009-11-28 12:25:53

shong
Talend team
Registered: 2007-08-29
Posts: 10297
Website

Re: Problem with Console

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


Email:shong@talend.com
Choose Talend, Enjoy Talend!
New & Event: Talend Help Center
Talend-->the leader of open source data management and application integration solutions!

Offline

#5 2009-11-28 12:37:48

jonny8516
Member
Registered: 2009-10-11
Posts: 32

Re: Problem with Console

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?

Offline

#6 2009-11-28 12:47:31

shong
Talend team
Registered: 2007-08-29
Posts: 10297
Website

Re: Problem with Console

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


Email:shong@talend.com
Choose Talend, Enjoy Talend!
New & Event: Talend Help Center
Talend-->the leader of open source data management and application integration solutions!

Offline

#7 2009-11-28 12:53:13

jonny8516
Member
Registered: 2009-10-11
Posts: 32

Re: Problem with Console

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

Offline

#8 2009-11-28 14:34:06

shong
Talend team
Registered: 2007-08-29
Posts: 10297
Website

Re: Problem with Console

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


Email:shong@talend.com
Choose Talend, Enjoy Talend!
New & Event: Talend Help Center
Talend-->the leader of open source data management and application integration solutions!

Offline

#9 2009-11-28 14:57:04

jonny8516
Member
Registered: 2009-10-11
Posts: 32

Re: Problem with Console

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

Offline

#10 2009-11-28 14:58:58

jonny8516
Member
Registered: 2009-10-11
Posts: 32

Re: Problem with Console

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

Offline

#11 2009-11-28 15:06:35

shong
Talend team
Registered: 2007-08-29
Posts: 10297
Website

Re: Problem with Console

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

Best regards

         shong


Email:shong@talend.com
Choose Talend, Enjoy Talend!
New & Event: Talend Help Center
Talend-->the leader of open source data management and application integration solutions!

Offline

#12 2009-11-28 15:07:45

jonny8516
Member
Registered: 2009-10-11
Posts: 32

Re: Problem with Console

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

Offline

#13 2009-11-28 15:15:02

shong
Talend team
Registered: 2007-08-29
Posts: 10297
Website

Re: Problem with Console

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

Best regards

         shong


Email:shong@talend.com
Choose Talend, Enjoy Talend!
New & Event: Talend Help Center
Talend-->the leader of open source data management and application integration solutions!

Offline

#14 2009-11-28 15:15:18

jonny8516
Member
Registered: 2009-10-11
Posts: 32

Re: Problem with Console

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

Offline

#15 2009-11-28 15:52:33

shong
Talend team
Registered: 2007-08-29
Posts: 10297
Website

Re: Problem with Console

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

Best regards

         shong


Uploaded Images


Email:shong@talend.com
Choose Talend, Enjoy Talend!
New & Event: Talend Help Center
Talend-->the leader of open source data management and application integration solutions!

Offline

#16 2009-11-28 17:00:23

jonny8516
Member
Registered: 2009-10-11
Posts: 32

Re: Problem with Console

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.

Offline

Board footer

Powered by FluxBB