Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

tFileList count of files with particular file mask

Hi

I have below job sequence where I use tFileList and iterate over the list of files having particular file mask. I need to get total no of files in tJava_3 but when I use System.out.println("Total file count is: " + ((Integer)globalMap.get("tFileList_1_NB_FILE"))); it gives current iteration count not and total no of files count.

Any suggestions?

Thanks.

0683p000009M8Pp.png

 

Labels (2)
2 Replies
Anonymous
Not applicable
Author

Normally, the global variable ((Integer)globalMap.get("tFileList_1_NB_FILE"))) is used in the next subjob, eg:
tfilelist--iterate--->....
|onsubjobok
tJava

on tJava:
System.out.println("Total file count is: " + ((Integer)globalMap.get("tFileList_1_NB_FILE")));
Ganshyam
Creator II
Creator II

Hi,,

 

Make use of titeratetoflow component after tfilelist to iterate the number of files.

Here 2 files are executed.

 

0683p000009M6IZ.png

Regards

Ganshyam Patel