• Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » End of file Indicator/Number of Rows

#1 2009-09-09 19:33:32

JimmyMarbles
New member
Registered: 2009-09-09
Posts: 3

End of file Indicator/Number of Rows

Hello,

I am new to the Talend forum. I am reading in a file positionally and I was curious if there is a variable that indicates the end of the file has been reached. I have been debugging and I cannot seem to find it. What I did attempt to do was to keep a counter going in a tJavaFlex component and compare it to nb_line_tFileInputPositional_1 variable, however, somehow my counter is incremented before nb_line_tFileInputPositional_1, which does not make any sense to me either. Isn't this the variable that keeps track of the number of lines read in?

Any advice would be great!
Thanks
J. Marbles

Offline

#2 2009-09-10 08:24:51

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

Re: End of file Indicator/Number of Rows

Hello
The nb_line_tFileInputPositional_1 variable is only avaliable after the component end.
So, you can this var with the  'onsubjobok' link, eg:
tFileInputPositional--tLogRow
     |
onSubjobok
    |
tJava
On tJava, you can use the nb_line_tFileInputPositional_1 variable.

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-09-10 15:41:57

JimmyMarbles
New member
Registered: 2009-09-09
Posts: 3

Re: End of file Indicator/Number of Rows

I do see how that can work, however, the files I am dealing with are way to large for me to wait until the file read in has completed. It is definitely a solution for smaller projects though. Does Talend not have a variable that keeps track of the end of the file?

Offline

  • Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » End of file Indicator/Number of Rows

Board footer

Powered by FluxBB