cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Sign-in to the JMP Community will be unavailable intermittently Dec. 6-7 due to a system update. Thank you for your understanding!
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.
  • JMP 19 is here! Learn more about the new features.

Discussions

Solve problems, and share tips and tricks with other JMP users.
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));

Recommended Articles