For the latest version of JMP Help, visit JMP.com/help.


Scripting Guide > Types of Data > Path Variables > Create and Customize Path Variables
Publication date: 04/30/2021

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).