cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • New to JMP? Join us Sept. 23-24 for the Early User Edition of Discovery Summit, tailor-made for new users. Register now for free!
  • Your voice matters! Tell us how you prefer to receive JMP updates, so we can tailor our communication to your needs. Take short survey.
  • See how to access JMP Marketplace - and - find, create & share add-ins to extend your JMP. Watch video.

Discussions

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

How to copy the script of one table to another table using JSL?

dt=Open("$SAMPLE_DATA/Big Class.jmp");
scriptContent = dt << Get Script("Oneway");
d9 = New Table("A");
d9 << New Script("Oneway", scriptContent);

Thanks Experts!

2025-06-04_21-34-20.png

1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: How to copy the script of one table to another table using JSL?

There are plenty of demonstrations of saving expressions to table script so here is a repeat

Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Big Class.jmp");
ow_script = dt << Get Script("Oneway");
dt2 = Open("$SAMPLE_DATA/Big Class Families.jmp");
Eval(EvalExpr(
	dt2 << New Script("Oneway", Expr(NameExpr(ow_script)));
));
-Jarmo

View solution in original post

1 REPLY 1
jthi
Super User

Re: How to copy the script of one table to another table using JSL?

There are plenty of demonstrations of saving expressions to table script so here is a repeat

Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Big Class.jmp");
ow_script = dt << Get Script("Oneway");
dt2 = Open("$SAMPLE_DATA/Big Class Families.jmp");
Eval(EvalExpr(
	dt2 << New Script("Oneway", Expr(NameExpr(ow_script)));
));
-Jarmo

Recommended Articles