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.

Chapter 4 <strong>Scripting</strong> Tools 51<br />

Using the Script Editor<br />

To turn off function tooltips, deselect Preferences > Script Editor > Show Operator Tips.<br />

Example of a Tooltip for a JSL Variable<br />

1. Enter and run the following line in a script window:<br />

my_variable = 8;<br />

2. Hover over the variable name after you run the line.<br />

A tooltip shows the name of the variable and its value: 8.<br />

3. Enter and run the following line:<br />

my_variable = "eight";<br />

4. Hover over the variable name after you run the line.<br />

A tooltip shows the name of the variable and its value: “eight”.<br />

Match Parentheses, Brackets, and Braces<br />

The script editor helps you match fences (or parentheses, square brackets, and curly braces) in the following<br />

ways:<br />

• The matching closing fence is added when you type an opening fence.<br />

• When you place your cursor next to either an opening or closing fence, the fence and its match are<br />

highlighted in blue. If the fence does not have a match, it is highlighted in red.<br />

• If you double-click a fence, everything between the matching fence is selected (including the fences).<br />

• If you put your cursor within an expression and press CTRL-] on Windows (COMMAND-B on<br />

Macintosh), the entire expression is selected. Fences that enclose the expression are included. Repeat this<br />

process to highlight the next-higher expression. Figure 4.5 shows an example.<br />

Figure 4.5 Each Step in Matching Fences

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

Saved successfully!

Ooh no, something went wrong!