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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Building Tables in PSQL on a monthly basis

Hell all,

 

we gonna constantly upload data onto our PSQL db. Enclsoed you can see my ETL process.

What can I do to create a new table for each month by getting the date information outta file names?

 

file name: XXX_XXXXXX_date_XXXX.csv

 

Thanks!

Labels (2)
1 Solution

Accepted Solutions
akumar2301
Specialist II
Specialist II

String filedate = filename != null  &&  filename.split('_').length > 2 ? filename.split("_")[2] : "Date Not Found" ;

View solution in original post

2 Replies
joearun4u
Creator
Creator

@fmt 

 

The below article is used for getting the table name from DB, whereas youc an change it for files in the input component.

 

https://community.talend.com/t5/Archive/Use-Context-Variable-For-Table-Name/td-p/169278

 

Thanks,

Joe

akumar2301
Specialist II
Specialist II

String filedate = filename != null  &&  filename.split('_').length > 2 ? filename.split("_")[2] : "Date Not Found" ;