cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Browse apps to extend the software in the new JMP Marketplace
Choose Language Hide Translation Bar
Sextus
Level II

Saving the analysis script in the data table

JMP 18.01, Mac OS 14.5.

I noticed that saving a script to the data table may not capture the last bit(s) of analysis.  For example, when I execute >Distribution (empirical) on a subset of data I have the option to save Probability Scores, like in the included screenshot.  That last bit is not captured by the saved script.  Is there a way to include it?

 

Thank you.

1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: Saving the analysis script in the data table

It will get saved to Enhanced Log (or workflow builder most likely). I think you have to capture it from there and then make slight modifications to add it to your table script

jthi_0-1722624301971.png

I this case it could be enough if you take this script

jthi_1-1722624335016.png

and remove unnecessary parts. From

// Save Columns: Prob Scores
Local({obj},
	obj = Data Table("Big Class") << Distribution(
		Continuous Distribution(Column(:height), Process Capability(0))
	);
	obj << Save("Prob Scores");
	obj << Close Window;
);

to

	obj = Distribution(
		Continuous Distribution(Column(:height), Process Capability(0))
	);
	obj << Save("Prob Scores");

You might also want to drop the table name. You can save this as table script

obj = Distribution(
		Continuous Distribution(Column(:height), Process Capability(0))
	);
	obj << Save("Prob Scores");

jthi_2-1722624404362.png

 

But depending on what you are doing I would suggest you also check out workflow builder

-Jarmo

View solution in original post

2 REPLIES 2
jthi
Super User

Re: Saving the analysis script in the data table

It will get saved to Enhanced Log (or workflow builder most likely). I think you have to capture it from there and then make slight modifications to add it to your table script

jthi_0-1722624301971.png

I this case it could be enough if you take this script

jthi_1-1722624335016.png

and remove unnecessary parts. From

// Save Columns: Prob Scores
Local({obj},
	obj = Data Table("Big Class") << Distribution(
		Continuous Distribution(Column(:height), Process Capability(0))
	);
	obj << Save("Prob Scores");
	obj << Close Window;
);

to

	obj = Distribution(
		Continuous Distribution(Column(:height), Process Capability(0))
	);
	obj << Save("Prob Scores");

You might also want to drop the table name. You can save this as table script

obj = Distribution(
		Continuous Distribution(Column(:height), Process Capability(0))
	);
	obj << Save("Prob Scores");

jthi_2-1722624404362.png

 

But depending on what you are doing I would suggest you also check out workflow builder

-Jarmo
Sextus
Level II

Re: Saving the analysis script in the data table

Thank you.