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

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