Trying to open an excel file using the path variable "$Input_File" as below. When I run the script I receive an evaluation error. The script works fine when I execute the script with the file path itself rather than using the path variable. Can anybody suggest why this happens and how to resolve? Using JMP Pro 17.
Set Path Variable("Input_File", Pick File());
dt = Open(
"$Input_File",
Worksheets({"Experiment Details"}),
Use for all sheets( 0 ),
Concatenate Worksheets( 1 ),
Create Concatenation Column( 1 ),
Worksheet Settings(
1,
Has Column Headers( 1 ),
Number of Rows in Headers( 1 ),
Headers Start on Row( 1 ),
Data Starts on Row( 2 ),
Data Starts on Column( 1 ),
Data Ends on Row( 0 ),
Data Ends on Column( 2 ),
Replicated Spanned Rows( 1 ),
Replicated Spanned Headers( 0 ),
Suppress Hidden Rows( 1 ),
Suppress Hidden Columns( 1 ),
Suppress Empty Columns( 1 ),
Treat as Hierarchy( 0 ),
Multiple Series Stack( 0 ),
Import Cell Colors( 0 ),
Limit Column Detect( 0 ),
Column Separator String( "-" )
)
);
dt << Set Name("Exp_Details_1.jmp");