cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Check out the JMP® Marketplace featured Capability Explorer add-in
Choose Language Hide Translation Bar
Song
Level III

why this script is not working??

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 );

this script is  not working at select columns....

please solve it ..

 

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: why this script is not working??

You appear to be attempting to use SAS Macro syntax in a JMP script.  &i is not valid for JSL.

 

One way to handle what you are attempting to do in JSL is

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 ) )
	)
);

Documentation on this is in the Scripting Guide.  You need to take the time to read through the documentation.

     Help=>JMP Documentation Library=>Scripting Guide

Jim

View solution in original post

2 REPLIES 2
txnelson
Super User

Re: why this script is not working??

You appear to be attempting to use SAS Macro syntax in a JMP script.  &i is not valid for JSL.

 

One way to handle what you are attempting to do in JSL is

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 ) )
	)
);

Documentation on this is in the Scripting Guide.  You need to take the time to read through the documentation.

     Help=>JMP Documentation Library=>Scripting Guide

Jim
Song
Level III

Re: why this script is not working??

Thanks a lot!