Subscribe Bookmark RSS Feed

Saving results in a list for future use

seburke89

Community Trekker

Joined:

Jun 4, 2015

I have a jsl list containing results of a simulation. Each element in the list has a list with several matrices of results. Is there a way to save the entire list as some kind of data file in JMP without it being a data table? I don't want to run the simulation every time I reopen JMP to analyze the results. I'm using JMP 11, by the way.

Thanks!

Sarah

1 ACCEPTED SOLUTION

Accepted Solutions
Solution

Generally in cases like this I would 'tie' the results to a table with some associated data by storing them as a table property or variable. That way, when the table is saved the results can be persisted between JMP sessions.

But you can also do things like:

NamesDefaultToHere(1);

matList = {};

for(i=1, i<=RandomInteger(10), i++, InsertInto(matList, Identity(i)));

myFile = "$DESKTOP/matList.txt";

SaveTextFile(myFile, Char(matList));

Wait(2);

matList2 = Parse(LoadTExtFile(myFile));

for(i=1, i<=NItems(matList), i++, Print(matList[i] - matList2[i]));

2 REPLIES
Solution

Generally in cases like this I would 'tie' the results to a table with some associated data by storing them as a table property or variable. That way, when the table is saved the results can be persisted between JMP sessions.

But you can also do things like:

NamesDefaultToHere(1);

matList = {};

for(i=1, i<=RandomInteger(10), i++, InsertInto(matList, Identity(i)));

myFile = "$DESKTOP/matList.txt";

SaveTextFile(myFile, Char(matList));

Wait(2);

matList2 = Parse(LoadTExtFile(myFile));

for(i=1, i<=NItems(matList), i++, Print(matList[i] - matList2[i]));

seburke89

Community Trekker

Joined:

Jun 4, 2015

Perfect! Thanks so much!