Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- JMP User Community
- :
- Discussions
- :
- Discussions
- :
- Multiplying two columns with jsl script

Topic Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Nov 16, 2017 1:25 PM
(1341 views)

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

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

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

1 REPLY 1

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

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