Skip to main content
Announcements
Introducing a new Enhanced File Management feature in Qlik Cloud! GET THE DETAILS!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

how to split multiple sheets in a excel file into different excel files using talend.

I have a task to split multiple sheets of excel in a single file  and transform each sheet into each excel file  and do schema checks on each excel file.

Labels (2)
4 Replies
Anonymous
Not applicable
Author

Need to name the spitted  files by sheet names.

fdenis
Master
Master

fisrts solution one job by sheet to copy with dynamics data type.
second solution is to reverse previous jod (copy java code) and add and modify it into tJavaflex
last one is to call x time first job with sheet name as context.
good luck
Anonymous
Not applicable
Author

Hi SantoshReddy,

 

Please find the job design.

 

0683p000009M5Tj.jpg

 

In tJavaRow : Code is :

 

output_row.distinctSheet = ((String)globalMap.get("tFileInputExcel_1_CURRENT_SHEET"));

 

in tFileInputExcel_2, in Sheet Name, use as : ((String)globalMap.get("row5.distinctSheet")), similarly in tFileOutputExcel_2 in File Name and Sheet name use the same.

 

in tFileInputExcel_1 check the box "All Sheets" to read.

 

Thanks and regards,

Subhadip

Anonymous
Not applicable
Author

Also from the the input Excel component you can read data dynamically.