BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Everything is very simple - I am trying to match two lists, say List1 and List2, each of which contains last names...

I am using the following:

proc sql;
select *
from List1 as p, List2 as r
where p.lastnamefromlist1 = r.lastnamefromlist2;
quit;

And the result is empty set, but List1 and List2 have the same data. Weird thing is that I ran this code before and produced the right results. I am not sure what is going on??? Any ideas?
1 REPLY 1
deleted_user
Not applicable
Hmm, you say you are creating an empty set, but I don't actually see where you are creating anything but a list output. Are you sure you are not constantly looking back at the same unchanged empty table?

I would have expected the syntax " Select *" to be preceded by something like "Create Table RESULTS As".

If you rewrote your syntax and missed a line, then please set the options "_Method STimer" on the SQL Procedure call and just send us the log excerpt so we can see what methods were called, how long it took and what was created.

Kind regards

David

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 635 views
  • 0 likes
  • 1 in conversation