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/21/2023

Create and Customize Path Variables

You can create your own path variables or override some of the built-in variables using 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).