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

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

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
  • 726 views
  • 0 likes
  • 1 in conversation