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.

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

Using the Script Editor<br />

• teal blue for numbers<br />

• medium blue for JSL functions and operator names<br />

• dark blue for operator symbols and the first keyword<br />

• purple for strings<br />

• dark cyan and bold for scalar values<br />

• black for everything else<br />

Customize colors in the preferences. See “Set Preferences for the Script Editor” on page 53.<br />

Auto Complete Functions<br />

If you do not remember the exact name of a function, use auto completion to see a list of functions that<br />

match what you have typed so far. Type part of the name, and then press CTRL-ENTER on Windows<br />

(OPTION-ESC on Macintosh).<br />

Suppose that you want to clear your JSL variables, but do not remember the command. You can type clear<br />

and then press CTRL-SPACE, to see a list of possible clear commands. Select the command that you want<br />

to insert.<br />

Figure 4.3 Autocomplete Example<br />

Tooltips<br />

If you are using a function and do not remember the syntax or need more information about it, place the<br />

cursor over it to see a brief explanation. This works only with JSL function names, not platform commands,<br />

messages, or user-created functions. JSL function names are colored blue in the script editor.<br />

The tooltip shows the syntax, arguments, and a brief explanation of the function (Figure 4.4). The tip also<br />

appears in the script editor window status bar.<br />

Figure 4.4 Tooltip for a JSL Function<br />

After running a script, you can also place the cursor over variable names to see their current value. To turn<br />

off variable tooltips, deselect Preferences > Script Editor > Show Variable Value Tips.

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

Saved successfully!

Ooh no, something went wrong!