cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • DownloadSemiconductor Toolkit: Tools to create wafer maps, add wafer geometry to graphics, explore die defects & compare wafers.
  • Discovery Summit 2026: Early User Edition - September 23-24.Register. It's free.
  • Use JMP Clinical with CDISC-compliant data. Review studies, ID safety and efficacy signals & communicate findings with interactive graphics. Register to see how. Aug. 27, 2 pm US ET.

Discussions

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

Can I copy the embedded scripts from one table to another?

If I have a parent table with many scripts embedded.  Can I copy those easily to a summary table or transposed table automatically using JSL?

 


Slán



SpannerHead
1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: Can I copy the embedded scripts from one table to another?

Yes 

Names Default To Here(1); 

dt1 = open("$SAMPLE_DATA/Big Class.jmp");
dt2 = open("$SAMPLE_DATA/Big Class Families.jmp");
dt2 << Delete Scripts(dt2 << Get Table Script Names);

For Each({sname}, dt1 << Get Table Script Names,
	s = dt1 << Get Script(sname);

	Eval(EvalExpr(dt2 << New Script(sname,
		Expr(NameExpr(s))
	)));	
);

Write();
-Jarmo

View solution in original post

4 REPLIES 4
jthi
Super User

Re: Can I copy the embedded scripts from one table to another?

Yes 

Names Default To Here(1); 

dt1 = open("$SAMPLE_DATA/Big Class.jmp");
dt2 = open("$SAMPLE_DATA/Big Class Families.jmp");
dt2 << Delete Scripts(dt2 << Get Table Script Names);

For Each({sname}, dt1 << Get Table Script Names,
	s = dt1 << Get Script(sname);

	Eval(EvalExpr(dt2 << New Script(sname,
		Expr(NameExpr(s))
	)));	
);

Write();
-Jarmo
SpannerHead
Level VI

Re: Can I copy the embedded scripts from one table to another?

Jarmo

 

Brilliant!  You should see the script this replaced!


Slán



SpannerHead
txnelson
Super User

Re: Can I copy the embedded scripts from one table to another?

This has been a repeated topic in the Discussion Group.  A simple search would have provided the answer to you faster and more efficiently that opening a new discussion and waiting for someone to respond.

Jim
SpannerHead
Level VI

Re: Can I copy the embedded scripts from one table to another?

Jim

 

I apologise profusely, it won't happen again!


Slán



SpannerHead

Recommended Articles