Suppose I'm subsetting a table and summarizing it in proc sql
. The code uses a where ... in
clause and a subquery to do the subsetting. I know that some SQL engines would set some limit on the number of arguments to the where ... in
clause. Does SAS has have limit on this? This question would apply to a program like this:
proc sql;
create table want as
select
ID,
sum(var1) as var1,
sum(var2) as var2,
sum(var3) as var3
from largetable
where ID in (select ID from longlist)
group by ID;
quit;
What if longlist
returns 10,000 IDs? How about 10,000,000?