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: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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