Hello,
I want to merge two datasets as shown below.
data sub;
set orig;
where name="speech";
run;
data main;
merge sub(in=a) orion.play(in=b);
by actor;
if a and b;
run;If I just run the code above, there is an error saying ERROR: BY variables are not properly sorted on data set WORK.SUB.
However, if i sort the data as below:
proc sort data=sub out=sub;
by actor;
run;There are still errors saying
How big are these data sets?
Are you using SAS University Edition?
Try option TAGSORT .
proc sort data=sub out=sub tagsort ;
by actor;
run;
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 lock in 2025 pricing—just $495!
Get started using SAS Studio to write, run and debug your SAS programs.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.