This version of the Help is no longer updated. See JMP.com/help for the latest version.

.
Scripting Guide > Types of Data > Path Variables > Create and Customize Path Variables
Publication date: 07/30/2020

Create and Customize Path Variables

You can create your own path variables or override some of the built-in variables with the Set Path Variable(). In the following example, the path variable is called root. The variable points to the c:/ directory.

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

To get the value of the new variable, use Get Path Variable().

Get Path Variable( "root" );

"c:/"

Use your path variable as you would other variables. The following expression opens the myimportdata.txt file in the c:/ directory.

Open( "$root/myimportdata.txt" );

As with getting path variables, omit the dollar sign when setting path variables.

Want more information? Have questions? Get answers in the JMP User Community (community.jmp.com).