Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
mobmsc2
Creator
Creator

Using tSortRow after reading multiple files to sort across all rows

I have a directory of files which I iterate through and output to 1 master file. I would like to sort all the rows in a particular order before outputting to a file but because I'm iterating through multiple files my output is automatically separated into batches based on the flow of rows through my job.

 

Is there a way to sort all the rows without having to read in the master file?

Labels (1)
1 Solution

Accepted Solutions
TRF
Champion II
Champion II

Hi,

 

tFileList --> tFileInputDelimited --> tHashOutput

|

+ on Subjob OK

|

tHashInput --> tSortRow --> tFileOutputDelimited (sorted with all records)

 

Hope this helps.

View solution in original post

6 Replies
TRF
Champion II
Champion II

Hi,

 

tFileList --> tFileInputDelimited --> tHashOutput

|

+ on Subjob OK

|

tHashInput --> tSortRow --> tFileOutputDelimited (sorted with all records)

 

Hope this helps.

TRF
Champion II
Champion II

Does this answer solved your case?
If so, thank's to close the subject.
mobmsc2
Creator
Creator
Author

In this case would tFileList trigger SubJob Ok when all files have been read or after each file was read?

Anonymous
Not applicable

The subjob starts to work only when all files are read.

TRF
Champion II
Champion II

"on Subjob OK" means "when the subjob is finish with success", so in this case when all the files have been read.

Anonymous
Not applicable

Hello,

Here is a document about https://community.talend.com/t5/Design-and-Development/What-is-the-difference-between-OnSubjobOK-and...

Hope it will be helpful.

Best regards

Sabrina