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.

Chapter 2 Introduction 33<br />

Terminology<br />

Continuous Distribution( Column( :height ) ),<br />

Continuous Distribution( Column( :weight ) )<br />

);<br />

Both scripts give the same result.<br />

Feel free to experiment with JSL. If you think something ought to be possible, it probably is. Give it a try,<br />

and see what happens.<br />

Terminology<br />

Before you begin creating scripts, you should become familiar with basic JSL terms used throughout this<br />

book.<br />

Operators and Functions<br />

An operator is one- or two-character symbol (such as + or =) for common arithmetic actions.<br />

A function is a command that might contain additional information for the function to use.<br />

Certain JSL functions work the same as operators but provide access to more complex actions. For example,<br />

the following two lines are equivalent:<br />

2 + 3;<br />

Add( 2, 3 );<br />

The first line uses the + operator. The second line uses the Add() function equivalent.<br />

Although all JSL operators have function equivalents, not all functions have operator equivalents. For<br />

example, Sqrt(a) can be represented only by the Sqrt() function.<br />

Note: In previous versions of JMP and its documentation, the terms operators and functions were used<br />

interchangeably. Now each term has a specific meaning.<br />

Objects and Messages<br />

An object is a dynamic entity in JMP, such as a data table, a data column, a platform results window, a graph,<br />

and so on. Most objects can receive messages that instruct the object to perform some action on itself.<br />

A message is a JSL expression that is directed to an object. That object knows how to evaluate the message. In<br />

the following example, dt is the data table object.

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

Saved successfully!

Ooh no, something went wrong!