cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Submit your abstract to the call for content for Discovery Summit Americas by April 23. Selected abstracts will be presented at Discovery Summit, Oct. 21- 24.
Discovery is online this week, April 16 and 18. Join us for these exciting interactive sessions.
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"