Download presentation
Presentation is loading. Please wait.
1
JMP User Group Meeting JSL Scripting101
Presenter: Anshuman Singh Date: 4/27/2015 Location: Greenville, SC
2
Helpful Links
3
JSL- Where to start? Not the most user friendly language to learn.
You mostly wont need to learn it unless you want to do a repetitive task with consistent results JMP helps you create JSLs and then you can modify them to your needs. You should have the visual of the output you are looking for. The functions, statements, loops and calculations are mostly similar to C/C++, except when you get into embedding sql, matlab, R etc in its code. So a little programming experience will reduce the learning curve. One HUGE help: Scripting Guide PDF book under the Help menu in JMP Sample data sets within JMP and checking their saved scripts JSL Syntax reference PDF within JMP help menu is good for functions search. JSL scripting index is awesome! It will have all the functions and their “example JSL script”.
4
JMP - Help
5
JMP Help Index: JSL building blocks
Go to Help > search the help > type “JSL building”
6
JSL – Tips and Tricks Annotate error lines in log: under preferences > general JSL code folding: under preferences > script editor Commenting an entire section by highlighting. Split window vertically or horizontally. Saving script to data table for future use – Big Class! Bootstrap: reset seeds – Boston Housing! Bracket highlighter to check for missing brackets. Double click to select 1 entire section contained within the bracket. Reformat script: select code > right click > reformat script for correct indentation. Autocomplete Function shortcut: ctrl+space JSL profiler and debugger – example problem!
7
Example Problem I had 5 minutes interval data for 4 years each for 80 units. The data was obtained in 80 separate files; 1 for each unit. Each file is nearly 40MB big with nearly 500,000 rows. My task: Modify the table, add a few columns Create summary of each table Filter data out of the summary table Save all these summary tables in another folder Concatenate all these summary tables for further post processing.
8
Where do I start? Open the csv file in Excel, and click on the JMP tab, to convert it into JMP data-table. Once obtained in JMP, right click on source > edit > script. Copy this script in a new script window. To create new columns, check out this link: copy the portion of the script you need. Create summary table and again do, source > edit > script. Copy paste it in main script. Found this to create a script for a “subset table” Also used it to filter unwanted data. Found this to figure out how to save the new modified summary table
9
Questions?
Similar presentations
© 2024 SlidePlayer.com Inc.
All rights reserved.