Hello,
First, I am using JMP 11
I'm trying to create a template script that my analysts can use in the future. I'm new to JSL, and am trying to figure out how to import a specific worksheet in JSL, then modify particular variables to be numeric and add a new calculation.
When I try the import portion of this code, it opens the import wizard rather than creating a new data table called "Our Data".
--
dtmain = New Table("Our Data",
Open("C:\Testing Data.xlsx",
Worksheets( "Final Data" ),
)
);
Current Data Table (dtmain);
column (dtmain, "Type") <<data type (Numeric) <<Modeling Type(Ordinal) <<Format(Best, 12);
column (dtmain, "Result1) <<data type (Numeric) <<Modeling Type(Continuous) <<Format(Best, 12);
column (dtmain, "Result2") <<data type (Numeric) <<Modeling Type(Continuous) <<Format(Best, 12);
New Column( "Result Ratio",
Numeric,
Continuous,
Format( "Best", 12 ),
Formula( :Result1 / :Result2 )
);