如何使用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>