For the latest version of JMP Help, visit

Scripting Guide > Extending JMP > Work with SAS > SAS Variable Names
Publication date: 11/10/2021

SAS Variable Names

SAS Open For Var Names() opens a SAS data set only to obtain the names of its variables, returning those names as a list of strings.

The rules for SAS variable names are more strict than those of JMP. The SAS Name function converts JMP variable names to SAS variable names, changing special characters and blanks to underscores, and various other transformations to produce a valid SAS name.

result = SAS Name(name);
result = SAS Name({list of names});

If the argument is a list of names, the result is a blank-separated character string of names. For example,

SAS Name({“x 1”, “x 2”})


“ x_1 x_2”
Want more information? Have questions? Get answers in the JMP User Community (