- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
How about this:
[pre]
data original;
input (Column1 Column2 TYPE Column4 ) ($);
cards;
x x A x
x x G x
x x B x
x x D x
x x C x
;
run;
data database;
input variables $;
cards;
A,
B,
C,
;
run;
proc sql;
create table filtered as
select a.*
from original as a, database as b
where b.variables contains strip(a.type)
;
quit;
[/pre]
Ksharp
[pre]
data original;
input (Column1 Column2 TYPE Column4 ) ($);
cards;
x x A x
x x G x
x x B x
x x D x
x x C x
;
run;
data database;
input variables $;
cards;
A,
B,
C,
;
run;
proc sql;
create table filtered as
select a.*
from original as a, database as b
where b.variables contains strip(a.type)
;
quit;
[/pre]
Ksharp
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Thank you all for your suggestions, its been very useful
- « Previous
-
- 1
- 2
- Next »