cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. EST on Friday, Jan. 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.

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