cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
New to using JMP? Hit the ground running with the Early User Edition of Discovery Summit. Register now, free of charge.
Register for our Discovery Summit 2024 conference, Oct. 21-24, where you’ll learn, connect, and be inspired.
Choose Language Hide Translation Bar
shampton82
Level VII

save an analysis script to the data table without running it first

is there a way to save a script to a data table without running it?

 

I use this to save an analysis after it gets ran:

 

objgb1 << Save Script to Data Table( "GB", <<Prompt( 0 ), <<Replace( 0 ) )

 

but I'd like to set up the analysis then have it save to the table so a users can run it later on if they need to.

 

Thanks for any ideas.

Steve

2 ACCEPTED SOLUTIONS

Accepted Solutions
jthi
Super User

Re: save an analysis script to the data table without running it first

Most likely there are other options, but here is one

Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Semiconductor Capability.jmp");

fit = Expr(Bivariate(Y(:NPN1), X(:PNP1)));
Eval(EvalExpr(dt << New Script("FitX-Y", Expr(NameExpr(fit)))));

jthi_0-1649088690034.png

 

-Jarmo

View solution in original post

txnelson
Super User

Re: save an analysis script to the data table without running it first

Any analysis script can be saved directly to the data table, without running it

Names Default To Here( 1 );

Current Data Table() << new script(
	"theDistribution",
	Distribution(
		Continuous Distribution( Column( :weight ) ),
		Nominal Distribution( Column( :age ) )
	)
);
Jim

View solution in original post

2 REPLIES 2
jthi
Super User

Re: save an analysis script to the data table without running it first

Most likely there are other options, but here is one

Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Semiconductor Capability.jmp");

fit = Expr(Bivariate(Y(:NPN1), X(:PNP1)));
Eval(EvalExpr(dt << New Script("FitX-Y", Expr(NameExpr(fit)))));

jthi_0-1649088690034.png

 

-Jarmo
txnelson
Super User

Re: save an analysis script to the data table without running it first

Any analysis script can be saved directly to the data table, without running it

Names Default To Here( 1 );

Current Data Table() << new script(
	"theDistribution",
	Distribution(
		Continuous Distribution( Column( :weight ) ),
		Nominal Distribution( Column( :age ) )
	)
);
Jim