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 6 Types of Data 107<br />

Path Variables<br />

Table 6.1 Path Variable Definitions (Continued)<br />

Variable<br />

Path<br />

SAMPLE_IMPORT_DATA • Windows: "/C://Samples/Import Data/"<br />

• Macintosh: "/Library/Application Support//Samples/Import Data/"<br />

SAMPLE_SCRIPTS • Windows: "/C://Samples/Scripts/"<br />

• Macintosh: "/Library/Application Support//Samples/Scripts/"<br />

TEMP • Windows 7 and Vista: "/C:/Users//AppData/Local/<br />

Temp/"<br />

• Windows XP: "/C:/Documents and Settings//Local<br />

Settings/Temp/"<br />

• Macintosh: "/private/var/folders/.../Temporary Items/"<br />

USER_APPDATA<br />

Changes to JMP preferences,<br />

menus, and the Home<br />

Window are stored here,<br />

along with Debugger session<br />

settings.<br />

• Windows 7 and Vista: "/C:/Users//AppData/Local/<br />

<strong>SAS</strong>/JMP//"<br />

• Windows XP: "/C:/Documents and Settings//Local<br />

Settings/Application Data/<strong>SAS</strong>/JMP//"<br />

• Macintosh: "/Users//Library/Application Support/JMP/<br />

/"<br />

Note: In JMP 9 and earlier, sample files were in the JMP Support Files directory for specific languages. For<br />

example, Japanese sample data tables were in the JMP Support Files Japanese/Sample Data directory.<br />

Now, multilingual sample data tables are in the Samples/Data directory.<br />

To see the definition of any path variable, use the function Get Path Variable:<br />

Get Path Variable("HOME");<br />

"/C:/Users//AppData/Local/<strong>SAS</strong>/JMP/10/"<br />

Note that you don’t include a dollar sign for Set Path Variable() or Get Path Variable(). But you<br />

must include the dollar sign when using the variable in a script.<br />

Create and Customize Path Variables<br />

You can create your own path variables or override some of the built-in variables with the Set Path<br />

Variable(). In the following example, the path variable is called root. The variable points to the c:/<br />

directory.<br />

Set Path Variable("root", "c:/");<br />

To get the value of the new variable, use Get Path Variable().<br />

Get Path Variable("root"); // returns "c:/"

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

Saved successfully!

Ooh no, something went wrong!