Skip to Content
0
Jun 16, 2016 at 11:36 AM

Process Multiple Files Sequentially and load into staging table.

1570 Views

Hi All,

I have requirement we are extracting the Multiple files from on of the source folder( D:\Source). the folder contains files such as .CSV format

Ex:


Test-20160616-00000049.csv

Test-20160616-00000050.csv

Test-20160616-00000051.csv

Test-20160616-00000052.csv

I need to extract this files one by one ( Sequentially ) and load into staging table( DB2 database). My guess is I have to use while loop in this scenario to loop files one by one. can you please give the script to do this process.

Thanks

Murali