cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Check out the JMP® Marketplace featured Capability Explorer add-in
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"