为什么这个脚本不起作用?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文档库=>脚本指南
回复:为什么这个脚本不起作用?非常感谢!:)