News
On June 1, we’re asking you to select a content label when starting a new topic in the Discussions area. Read more to find out why.
Choose Language Hide Translation Bar
Highlighted
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
Highlighted
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

0 Kudos
2 REPLIES 2
Highlighted
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

0 Kudos
Highlighted
Song
Level III

Re: why this script is not working??

Thanks a lot!
0 Kudos