cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Sign-in to the JMP Community will be unavailable intermittently Dec. 6-7 due to a system update. Thank you for your understanding!
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.
  • JMP 19 is here! Learn more about the new features.

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

5 REPLIES 5
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

Recommended Articles