如何使用JSL在指定的JMP文件中编写脚本并保存在JMP中?如:Abrasion.jmp
dt = Open( "$SAMPLE_DATA/Abrasion.jmp" );
dt << Select Where( Shift == "A" );
d3 = dt << Subset( Output Table( "ts" ), Selected Rows( 1 ), selected columns( 0 ) );
JSL 提取文件“Abrasion.jmp”的子集,并在此子集文件中创建一个脚本,该脚本写入以下内容:
d3 = Current Data Table();
d3 << Sort( By( 6 ), Order( Descending ), replace table );<BR />

感谢专家!
自动化和脚本编写视窗Re: 如何使用JSL在指定的JMP文件中编写脚本并保存在JMP中?日志表明你缺少一个“)”
Unexpected end of input. Perhaps there is a missing "," or ")".
Trying to parse arguments of function "new script".
Line 2 Column 59: ...nding ), replace table );►...
您已删除 New Script 语句的训练“)”。
你的代码
Eval(
Parse(
"d3<<NEW script=""></NEW>
正确的代码
Eval(
Parse(
"d3<<NEW script=""></NEW>
Re: 如何使用JSL在指定的JMP文件中编写脚本并保存在JMP中?该JSL可以将具有指定内容的脚本写入新生成的JMP文件中。
但这里原来的JSL好像自动停止了,没有执行下面的代码。
dt = Open( "$SAMPLE_DATA/Abrasion.jmp" );
dt << Select Where( Shift == "A" );
d3 = dt << Subset( Output Table( "ts" ), Selected Rows( 1 ), selected columns( 0 ) );
Eval(
Parse(
"d3<<NEW script=""></NEW>
感谢专家!

Re: 如何使用JSL在指定的JMP文件中编写脚本并保存在JMP中?谢谢吉姆!Re: 如何使用JSL在指定的JMP文件中编写脚本并保存在JMP中?这是处理这个问题的一种方法
Names Default To Here( 1 );
dt = Current Data Table();
Eval(
Parse(
"dt<<NEW script=""></NEW>