/* a counter example */
data a;
id=1; output;
run;
data b;
id=1; y=0; output;
run;
data c;
merge a(in=x) b(in=y);
by id;
if x and y;
run;
data d;
merge a(in=x) b;
by id;
if x;
run;
proc compare base=c compare=d;
run;
/* on log -- in part
WARNING: No matching observations were found.
NOTE: There were 0 observations read from the data set WORK.C.
NOTE: There were 1 observations read from the data set WORK.D.
*/
Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.
Register today!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.
Select SAS Training centers are offering in-person courses. View upcoming courses for: