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:
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and save with the early bird rate—just $795!
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.