cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
New to using JMP? Hit the ground running with the Early User Edition of Discovery Summit. Register now, free of charge.
Register for our Discovery Summit 2024 conference, Oct. 21-24, where you’ll learn, connect, and be inspired.
Choose Language Hide Translation Bar
Ali84
Level I

Getting an error creating a list

I'm getting errors with my attempt select a list of matching rows.  Any suggestions as to what is wrong with this JSL code:

 

 

dt = Gas_Analysis_Full_0127
newList = {"Pump OIL", "ABD GAS"};
dt << Select Where( Contains( newList, :Well Status ) );

 

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: Getting an error creating a list

In order to point to a data table you need to use the Data Table() function

dt = data table("Gas_Analysis_Full_0127");

newList = {"Pump OIL", "ABD GAS"};

dt << Select Where( Contains( newList, :Well Status ) );
Jim

View solution in original post

2 REPLIES 2
txnelson
Super User

Re: Getting an error creating a list

In order to point to a data table you need to use the Data Table() function

dt = data table("Gas_Analysis_Full_0127");

newList = {"Pump OIL", "ABD GAS"};

dt << Select Where( Contains( newList, :Well Status ) );
Jim
Ali84
Level I

Re: Getting an error creating a list

Thank you so much Jim!