cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Register to attend Discovery Summit 2025 Online: Early Users Edition, Sept. 24-25.
  • New JMP features coming to desktops everywhere this September. Sign up to learn more at jmp.com/launch.
Choose Language Hide Translation Bar

Variable for filename

Hi Guys,

I have collected some cell values in certain variables. I want to save a file with the variable values as the file name.

I was trying something like this: I am saving the i.d. values in two variables.

1 REPLY 1
ms
Super User (Alumni) ms
Super User (Alumni)

Re: Variable for filename

Your solution is easy enough, you just have to follow the jsl syntax. Save() requires a string argument so you must be careful with where you place the quotation marks (reading the error messages in the log is good for learning how to debug your code).

And you must concatenate the substrings of course.

e.g.

id1||"_"||id2||".jmp"

If you have numeric columns you must also use Char()

char(id1)||"_"||char(id2)||".jmp"

Recommended Articles