data TITOLI_&DATA. ;
set DIPO.CHECK_&FILE._&DATA. ;
IF find(EVENTO_DESC_1,"argen","lehm","i") GE 1;
run;
ciao a tutti, non riesco a far cercare due parole ("argen" e "lehm"), con una sola ho il risultato. Ho provato in tutti i modi, avete un seggerimento?
Tnks
It is easier to search for multiple string using PRX functions like this
data temp;
set sashelp.cars;
if prxmatch('/audi|acura|volvo/i', make) > 0;
run;
It is easier to search for multiple string using PRX functions like this
data temp;
set sashelp.cars;
if prxmatch('/audi|acura|volvo/i', make) > 0;
run;
Anytime 🙂
No. That's an entirely different problem 🙂
But describe your problem in detail please. I'll see what I can do
data test;
input name $;
datalines;
argen
lehm;
run;
data TITOLI_&DATA. ;
set DIPO.CHECK_&FILE._&DATA.;
if prxmatch( test 'i', EVENTO_DESC_1) > 0;
run;
Vorrei inserire tutte le parole da ricercare in una tabella e chiedere a SAS di cercare quelle parole o simili nel DB
A few questions:
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.