I'm using JMP 18.0.1 and I noticed the new option for Multiple File Import that allows the user to provide a list files (or directories) to import.
I can successfully use it in a script like so:
Multiple File Import(
<<Set Use File List( 1 ),
<<Set File List( { "C:\file1.csv", "C:\file2.csv", "C:\file3.csv" } ),
<<Set Import Mode( "CSVData" ),
<<Set Stack Mode( "Stack Similar" ),
) << Import Data;
However, when I try to move the list to a variable, so that I can add/remove elements dynamically, the import stops working.
fileList = { "C:\file1.csv", "C:\file2.csv", "C:\file3.csv" };
Multiple File Import(
<<Set Use File List( 1 ),
<<Set File List( fileList ),
<<Set Import Mode( "CSVData" ),
<<Set Stack Mode( "Stack Similar" ),
) << Import Data;
There's no error, but zero tables are created. Even when I replace "Import Data" with "Create Window", I see that in the first case the list is populated, whereas it stays empty in the second case.
Am I missing something here? Am I trying to set this option in the wrong way?
Thanks!