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
masum111bd
Level II

Multiplying two columns with jsl script

I am trying to multiply two colums with jsl script. But no success.

dt<<new column("C", continious, Formula(:A * :B));

1 ACCEPTED SOLUTION

Accepted Solutions
ih
Super User (Alumni) ih
Super User (Alumni)

Re: Multiplying two columns with jsl script

It looks like you have a spelling error.  You might want to specify both the data and modeling type though.  Here is an example:

 

Names default to here( 1 );

dt = open("$Sample_data/iris.jmp");

dt << New Column("Sepal length x width", Numeric, "Continuous", Formula(:Sepal length * :Sepal width));

View solution in original post

1 REPLY 1
ih
Super User (Alumni) ih
Super User (Alumni)

Re: Multiplying two columns with jsl script

It looks like you have a spelling error.  You might want to specify both the data and modeling type though.  Here is an example:

 

Names default to here( 1 );

dt = open("$Sample_data/iris.jmp");

dt << New Column("Sepal length x width", Numeric, "Continuous", Formula(:Sepal length * :Sepal width));