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.

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

Sending Script Commands to a Live Analysis<br />

on page 337 in the “Display Trees” chapter.<br />

How to Interpret the Listing from Show Properties<br />

Notice that most items in the Show Properties output have hints inside brackets [ ] at the end of each<br />

line. This section examines the Show Properties for Bivariate as a general example.<br />

biv=Bivariate(Y(height), X(age));<br />

show properties(biv);<br />

[Subtable]s refer to a set of commands that are put in a submenu. The commands in the subtable are<br />

indented, and you use the subitem itself, not the parent item.<br />

Script [Subtable]<br />

Redo Analysis [Action] (Rerun this same analysis in a new window. The<br />

analysis will be different if the data has changed.)<br />

Save Script to Datatable [Action] (Return to the launcher for this<br />

analysis.)<br />

...<br />

[Boolean]s turn an option on or off, and their arguments are usually 1 or 0. If specified without an<br />

argument, sending the message flips it to the opposite state. Frequently [Boolean] messages also indicate<br />

that they by [Default On].<br />

Show Points [Boolean] [Default On]<br />

[New Entity] is a command that leads to a new window in the user interface. Here’s an example from the<br />

Distribution object properties:<br />

Prediction Interval [New Entity] (Prediction Interval to contain a single<br />

future observation or the mean of m future observations.)<br />

[Action]s are choices the user makes in the user interface. They do not have a specific standard for their<br />

arguments, so try the item in the interface first and then study the script that the platform saves.<br />

Fit Mean [Action] (Fits a flat line at the mean.)<br />

Fit Line [Action] (Fits a regression line to the data.)<br />

[Action Choice]s and [Enum]s have a specific set of choices for their arguments.<br />

Fit Polynomial [ActionChoice] {,2,quadratic,,3,cubic,,4,quartic,5,6}<br />

Here’s an example of [Enum] in the Bubble Plot properties:<br />

Draw [Enum] {Filled, Outlined, Filled and Outlined}<br />

Confusion alert! Do not confuse a reference to a platform with a reference to a report. They are different<br />

types of objects and can receive different types of JSL messages. For example, platforms can do such things<br />

as run tests, draw plots, or close entire windows. Reports can do such things as copy pictures, select display<br />

boxes, or close outline nodes.<br />

This chapter discusses how to script platforms. To learn how to script reports, see the section<br />

“Manipulating Displays” on page 331 in the “Display Trees” chapter.

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

Saved successfully!

Ooh no, something went wrong!