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-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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.

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