cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Check out the JMP® Marketplace featured Capability Explorer add-in
Choose Language Hide Translation Bar
lala
Level VIII

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 VIII

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