14.03.2014 Views

Scripting Guide - SAS

Scripting Guide - SAS

Scripting Guide - SAS

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

44 Getting Started Chapter 3<br />

Gluing Scripts Together<br />

Figure 3.4 The Completed Script<br />

Save the Script<br />

You now have a script that reproduces all of the steps that you performed manually. Save the script, and<br />

close your data table and all its report windows.<br />

1. In the script window that contains your script, select File > Save or File > Save As.<br />

2. Specify a filename (for example, Weekly Report).<br />

3. Click Save.<br />

Run the Script<br />

As long as your weekly updated Excel file is saved in the same place and contains the same columns, you can<br />

run your script and automatically produce all your reports.<br />

1. Open the script that you saved.<br />

2. Select Edit > Run Script.<br />

Your Excel file is opened in JMP, and all three of your reports appear.<br />

You can send this script to others. As long as they have access to the same Excel file in the same location,<br />

they can also run the script in JMP and see your reports.<br />

Advanced Note: Auto-Submit<br />

If you want a particular script to always be executed instead of opened into the script window, put the<br />

following command on the first line of the script:<br />

//!<br />

If this is not the very first line, with nothing else on the same line, this command does nothing.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!