為什麼這個腳本不起作用?Names Default To Here( 1 );
dd = Current Data Table();
i=1;
newdt&i = dd << Subset( Output Table Name( "i" ), All Columns( 1 ), All Rows( 1 ) );
//Graph table
newdt&1 << Select columns( :As is Config );
此腳本不適用於選擇列。
請解決..
回复:為什麼這個腳本不起作用?您似乎正在嘗試在JMP腳本中使用SAS Macro語法。 &i對JSL無效。
處理您在JSL中嘗試執行的操作的一種方法是
Names Default To Here( 1 );
dd = Current Data Table();
i = 1;
Eval(
Substitute(
Expr(
__xxx__ = dd << Subset( Output Table Name( "i" ), All Columns( 1 ), All Rows( 1 ) );
//Graph table
__xxx__ << Select columns( :As is Config );
),
Expr( __xxx__ ), Parse( "newdt" || Char( i ) )
)
);
有關此文檔,請參見《腳本指南》。 您需要花一些時間閱讀文檔。
幫助=> JMP文檔庫=>腳本指南
回复:為什麼這個腳本不起作用?非常感謝!:)