Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have a code that load excel file using wildcard
LOAD
....
FROM [lib://Payment Data/Payment Data *.xlsx]
How can I display the name of the file being loaded in the log file using TRACE commend ?
I don't think you can fetch the name to be displayed by trace command when using the wildschar method .
An alternative is to loop your files like below. It will five you more freedom to perform controls or display traces between each file iteration.
For each _file in FileValueList('lib://Payment Data/Payment Data *.xlsx')
Trace $(_file);
Load ... From [$(_file)];
Next _file
I don't think you can fetch the name to be displayed by trace command when using the wildschar method .
An alternative is to loop your files like below. It will five you more freedom to perform controls or display traces between each file iteration.
For each _file in FileValueList('lib://Payment Data/Payment Data *.xlsx')
Trace $(_file);
Load ... From [$(_file)];
Next _file
Workaround is save the FileName() value into a field in your table, Peek at it, then remove it after you are done reading the files.
Thanks for the suggestion.
Thanks for suggesting another way of doing this !