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!
  • Use World Cup data to build models, explore spatial relationships, and create informative visualizations in JMP. Register. July 17, 2 pm US Eastern Time.
  • Your voice matters! Tell us how you prefer to receive JMP updates, so we can tailor our communication to your needs. Take short survey.

Discussions

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

Are there any other ways to create a new script in the JMP table?

I think it will have /*...*/ The content of cannot be written
For example, the script is like this

Include("C:\gr.jsl");
/*
dz=Open("C:\gr.jsl",Charset("gb2312"),Add to Recent Files(0));
*/

I use

dt=Open("$SAMPLE_DATA/Big Class.jmp");
Eval(Parse("dt<<new script(\!"test\!", Include(\!"C:\gr.jsl\!");   );"))Thanks Experts!
1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: Are there any other ways to create a new script in the JMP table?

Names Default To Here(1); 

dt = open("$SAMPLE_DATA/Big Class.jmp");

dt << New Script("A",
JSL Quote(Include("C:\gr.jsl");
/*
dz=Open("C:\gr.jsl",Charset("gb2312"),Add to Recent Files(0));
*/),
As String(1)
);

jthi_0-1750070036053.png

 

-Jarmo

View solution in original post

7 REPLIES 7
jthi
Super User

Re: Are there any other ways to create a new script in the JMP table?

Which script are you trying to create? Do you wish to keep the comments? How to automatically write code containing /**/ to JSL? ?

-Jarmo
lala
Level IX

Re: Are there any other ways to create a new script in the JMP table?

no word
2025-06-16_13-15-20.png

jthi
Super User

Re: Are there any other ways to create a new script in the JMP table?

I'm still not sure what you are trying to achieve here

-Jarmo
lala
Level IX

Re: Are there any other ways to create a new script in the JMP table?

I need to directly generate the content of such a script in the table using a script.

Thanks Experts!

2025-06-16_13-30-37.png

jthi
Super User

Re: Are there any other ways to create a new script in the JMP table?

Names Default To Here(1); 

dt = open("$SAMPLE_DATA/Big Class.jmp");

dt << New Script("A",
JSL Quote(Include("C:\gr.jsl");
/*
dz=Open("C:\gr.jsl",Charset("gb2312"),Add to Recent Files(0));
*/),
As String(1)
);

jthi_0-1750070036053.png

 

-Jarmo
hogi
Level XIII

Re: Are there any other ways to create a new script in the JMP table?

Hi @jthi , do you remember where you found the as string (1) option.
super helpful! should be added to the scripting index - or made easier to finde if it is already there ...

jthi
Super User

Re: Are there any other ways to create a new script in the JMP table?

From script JMP creates when you use "Copy Table Script"

-Jarmo

Recommended Articles