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.

812 Glossary Appendix D<br />

function A function takes an argument or series of arguments inside parentheses after the function name.<br />

For example, the infix operator + has a function equivalent Add(). The statements 3+<br />

4 and Add(3,<br />

4) are equivalent. All JSL’s operators have function equivalents, but not all functions have operator<br />

equivalents. For example, Sqrt(a) can be represented only by the function. Also see the Function<br />

operator for storing a function under a name.<br />

global variable A global variable is a name to hold values that exists for the remainder of a session.<br />

Globals can contain many types of values, including numbers, strings, lists, or references to objects.<br />

They are called globals because they can be referred to almost anywhere, not just in some specific<br />

context.<br />

infix operator In infix operator takes one argument on each side, such as + in arithmetic, 3+<br />

4, or the =<br />

in an assignment, a=7.<br />

L-value Something that can be the destination of an assignment. In this manual, L-value describes an<br />

expression that normally returns its current value but that can alternatively receive an assignment to set<br />

its value. For example, you would ordinarily use a function such as Row() to get the current row number<br />

and assign it to something else. For example, x=Row(). However, since Row is an L-value, you can also<br />

place it on the left side of an assignment to set its value. For example, Row()=10.<br />

list A list is a multiple-item data type entered in special brace { } notation or with the List operator. Lists<br />

enable scripts to work with many things at once, often in the place of a single thing.<br />

matrix A matrix is a JMP data type for a rectangular array of rows and columns of number. In JSL,<br />

matrices are entered in bracket [ ] notation or with the Matrix operator.<br />

message A message is a JSL statement that is directed to an object, which knows how to execute the<br />

message.<br />

metadata In JMP data tables, metadata are data about the data, such as the source of the data, comments<br />

about each variable, scripts for working with the data, and so on.<br />

mousedown An event generated by pressing down the mouse button. See “Handle” on page 420 and<br />

“MouseTrap” on page 423.<br />

mouseup An event generated by releasing the mouse button. See “Handle” on page 420 and<br />

“MouseTrap” on page 423.<br />

name A name is a reference to a JSL object. For example, when you assign the numeric value 3 to a global<br />

variable in the statement a=3, “a” is a name.<br />

namespace A namespace is a collection of unique names and corresponding values. Namespaces are<br />

useful for avoiding name collisions between different scripts.<br />

named argument A named argument is an optional argument that you select from a predetermined set<br />

and explicitly define. For example, title("My Histogram") in the Graph Box function is a named<br />

argument. In functions such as New Window, the title is not a named argument, because title is the<br />

first required argument.

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

Saved successfully!

Ooh no, something went wrong!