cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. EST on Friday, Jan. 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
tom_abramov
Level V

List as data table variable

Hello,

I need to save the list as data table variable.

 

My List = {1,"2"}; 
DT << Set Table Variable( "The List", My List ); //doesn't work - the value of the variable is string "List"

And then, how do I assign the list to some new variable

MyNewListVariable = DT<< Get Table Variable( "The List" ); // Would it work?

 

Thank you.

1 ACCEPTED SOLUTION

Accepted Solutions
tom_abramov
Level V

Re: List as data table variable

Thank you,

Below is the code which worked for me:

 

dt = New Table("Table");
MyList = {"A","B"};
dt << Set Table Variable("Var", Char(MyList) );
list_as_string = dt << Get Table Variable( "Var" );
list_as_list = Parse(list_as_string);

View solution in original post

2 REPLIES 2
txnelson
Super User

Re: List as data table variable

JMP Table Variables are all stored as character strings, so your list will be returned as a character string, and you will have to convert it within your application.

Jim
tom_abramov
Level V

Re: List as data table variable

Thank you,

Below is the code which worked for me:

 

dt = New Table("Table");
MyList = {"A","B"};
dt << Set Table Variable("Var", Char(MyList) );
list_as_string = dt << Get Table Variable( "Var" );
list_as_list = Parse(list_as_string);

Recommended Articles