JerichoHill
Programmer
Here's the issue.
I have two files.
SANBEN is a listing of surnames in a place of interest.
HISPANIC80 is a listing of partial and full Hispanic surnames.
I'm currently trying to port over this surname analysis program into SAS from a very old version of DBASE.
The following code works, but is not seemingly matching up the smaller partial surnames.
proc sql;
create table ASN_SanBen as
select *
from SanBen
where SanBen.surname IN
(select Hispanic80.ssname
from asn.Hispanic80);
quit;
By partial surname, I mean like
BADA would match to BADA and BADABOOM
The error I get is
ERROR: Subquery evaluated to more than one row.
I assume this is because, where the HISPANIC80 has both Bada and Badaboom, the SANBEN list has Badaboom.
This is what I've been trying
proc sql;
create table ASN_SanBen as
select *
from SanBen
where SanBen.surname CONTAINS
(select Hispanic80.ssname
from asn.Hispanic80);
quit;
I've also tried ?, and a few other things.
I would appreciate any thoughts on this matter. Thanks
I have two files.
SANBEN is a listing of surnames in a place of interest.
HISPANIC80 is a listing of partial and full Hispanic surnames.
I'm currently trying to port over this surname analysis program into SAS from a very old version of DBASE.
The following code works, but is not seemingly matching up the smaller partial surnames.
proc sql;
create table ASN_SanBen as
select *
from SanBen
where SanBen.surname IN
(select Hispanic80.ssname
from asn.Hispanic80);
quit;
By partial surname, I mean like
BADA would match to BADA and BADABOOM
The error I get is
ERROR: Subquery evaluated to more than one row.
I assume this is because, where the HISPANIC80 has both Bada and Badaboom, the SANBEN list has Badaboom.
This is what I've been trying
proc sql;
create table ASN_SanBen as
select *
from SanBen
where SanBen.surname CONTAINS
(select Hispanic80.ssname
from asn.Hispanic80);
quit;
I've also tried ?, and a few other things.
I would appreciate any thoughts on this matter. Thanks