cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Don’t miss your chance to experience Discovery Summit Europe at our best available rate! Early bird registration through 31 Oct.
  • Graph Builder Toolbar streamlines interactive graphing. Creates shortcuts on Report and GraphBuilder Helpers toolbars. Download and install the extension.
  • JMP will suspend normal business operations for our Rest and Recharge Day on Friday, October 2, 2026.
    Regular business hours will resume on Monday, October 5, 2026.

Discussions

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

After generating a new script in a data table through JSL, why does the operation behind the original JSL stop?

For example the following JSL
Does it finish adding scripts and then stop working?

Thanks!

dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
Eval(
	Parse(
		"dt<<new script(\!"test\!",
dt<<Select Columns(ncol(dt));dt<<Move Selected Columns(after(Column(1)));
"
	)
);

//??
New Column( "AA" );

2024-04-17_11-36-37.png

2 REPLIES 2
txnelson
Super User

Re: After generating a new script in a data table through JSL, why does the operation behind the original JSL stop?

There is a syntax error in the JSL.  The Log shows

Unexpected end of input. Perhaps there is a missing "," or ")".
Trying to parse arguments of function "new script".
Line 2 Column 75: …olumns(after(Column(1)));►

The issue is a missing closing ");) for the New Script() function.  If the closing ");" is added the JSL works as expected.

dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
Eval(Parse(
	"dt<<new script(\!"test\!",
dt<<Select Columns(ncol(dt));dt<<Move Selected Columns(after(Column(1))););
"
));

//??
dt << New Column( "AA" );
Jim
lala
Level IX

Re: After generating a new script in a data table through JSL, why does the operation behind the original JSL stop?

Eval(Parse(
"dt<<new script(\!"test\!",


);"));

Thank Jim!

2024-04-17_12-16-21.png

Recommended Articles