As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only. Moving forward, myibi is our community platform to learn, share, and collaborate. We have the same Focal Point forum categories in myibi, so you can continue to have all new conversations there. If you need access to myibi, contact us at email@example.com and provide your corporate email address, company, and name.
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
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.
Posts: 397 | Location: New York City | Registered: May 03, 2007