14.03.2014 Views

Scripting Guide - SAS

Scripting Guide - SAS

Scripting Guide - SAS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

310 <strong>Scripting</strong> Platforms Chapter 10<br />

<strong>Scripting</strong> Analysis Platforms<br />

<strong>Scripting</strong> Analysis Platforms<br />

<strong>Scripting</strong> platforms is done with the same keywords that you see in the windows and menus, including the<br />

choices that you see in red triangle menus and context menus inside a report.<br />

You can use JMP interactively and then obtain the script corresponding to the analysis that you created. You<br />

can take advantage of this behavior in several ways:<br />

1. Learn JSL by example. Launch platforms and work with them interactively, and then save and examine<br />

the script that matches your work. Make changes through the interface and then study the changes in<br />

the script.<br />

2. Save a number of scripts from analyses to a script window, and then save it to a file. You can use that<br />

script to recreate the analysis later, or to reproduce the analysis using new data.<br />

3. Save platform scripts, and then edit them to use JSL programming features to make the analyses more<br />

general and to customize reports.<br />

Select Help > <strong>Scripting</strong> Index, and then select Objects from the menu to see all the scripting commands<br />

available for each platform. This index includes all scriptable platform options, with a description, the<br />

syntax, and an example.<br />

Notation in this chapter<br />

This chapter Capitalizes The Names of command words that you need to use exactly as they are shown<br />

and shows arguments that are placeholders for actual choices in lowercase. For example, Connect Color<br />

is a command that you need to type as is, and color stands for some color choice that you make yourself.<br />

Connect Color(color)<br />

In this case, the argument in parentheses must be some color value. For example, a JMP color number, or a<br />

supported color name like "red", "blue", and so on, or an RGB value given as a list, such as {.75, .50,<br />

.50}. Sometimes alternatives like these are shown with the vertical bar (|) character for “or,” like this:<br />

Connect Color( number | "color name" | {r,g,b} );<br />

You do not have to use upper- and lower-case letters, and you do not have to type the | character either.<br />

You can use the following terms interchangeably depending on context: command, option, or message. The<br />

term argument refers to anything that goes in parentheses after an item, and arguments can also contain<br />

options with further arguments.<br />

Launching Platforms Interactively and Obtaining the Equivalent<br />

Script<br />

Here is an example to see how the JMP interface and scripting language are related.

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

Saved successfully!

Ooh no, something went wrong!