Focal Point
Identifying Filename in Synonym

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/1381057331/m/6557013226

July 17, 2012, 01:05 PM
AnnaR
Identifying Filename in Synonym
I have a process that loops thru multiple csv files and I need to capture the filename as part of the input transformation, so the source data is appended with additional column called 'File_name' and populated with the name of the file. How this can be achieved in the Data Migrator flow?


WebFOCUS 7.7, iWay Data Migrator, Windows
Excel, PDF, HTML, XML
July 18, 2012, 09:54 AM
Clif
Are you asking how to get the file name or how to loop?

You can add a field to the input synonym with FIELD=FILE_NAME, ALIAS=INSTANCE and that will be automatically populated with the name of the input file.

You can process multiple files using the Iterator (if all the files are ready to process) or the File Listener (if you want to process files as they arrive in a specified application directory). Both approaches are documented in the DataMigrator User's Guide.


N/A
August 02, 2012, 11:02 AM
AnnaR
Thank you! This is exactly what i was looking for.


WebFOCUS 7.7, iWay Data Migrator, Windows
Excel, PDF, HTML, XML