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

Dear All,

I would like to make a query on a database that contains two separate columns in which different genetic mutations are indicated.
Therefore I would like to look for two mutations at the same time.
I wrote the following program in SAS:

 

proc sql;
create table f.gat as
select *
from f.c
where mutation1 in ("G178R", "S549N", "S549R", "S549R (A-> C)", "S549R (T-> G)", "G551D", "G551S", "G1244E", "S1251N "," S1255P "," G1349D ")
or / and
mutation2 in ("G178R", "S549N", "S549R", "S549R (A-> C)", "S549R (T-> G)", "G551D", "G551S", "G1244E", "S1251N" , "S1255P", "G1349D");
run;

in JMP is it possible to write a program that does the same thing that SAS does? Is it possible to replace "in" with "not in" or different?

 

Thank you

 

Giuseppe

 

1 REPLY 1
frank_wang
Level IV

Re: SQL

Hi

JMP can query DB like below:

obj = New SQL Query( Connection( "ODBC:DSN=SampleDSN;" ), Custom SQL( "SELECT c1, c2, c3 FROM my_table;" ) );

Put SQL into 'Custom SQL()'. Details could be serched from script index with key word 'SQL'

心若止水

Recommended Articles