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”})
produces
“ x_1 x_2”