World Statistics Day was yesterday, but we’re celebrating all week long! This celebration means acknowledging the impact statistics has on our world. Who is your favorite statistician? Share with us who they are and why they top your favorites list.
Choose Language Hide Translation Bar
Highlighted
seburke89
Level III

Saving results in a list for future use

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
ian_jmp
Staff

Re: Saving results in a list for future use

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]));

View solution in original post

2 REPLIES 2
ian_jmp
Staff

Re: Saving results in a list for future use

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]));

View solution in original post

Highlighted
seburke89
Level III

Re: Saving results in a list for future use

Perfect! Thanks so much!

Article Labels

    There are no labels assigned to this post.