Aug 21, 2008 #1 DonaZ Technical User Oct 10, 2007 41 US Hi How do you select the top N records using Proc SQL in SAS? Thank you in advance for your time.
Aug 21, 2008 1 #2 ChrisW75 Programmer Dec 22, 2003 727 AU You can't really, not that I'm aware of. However, you can put an OBS= dataset option onto the input dataset... Code: proc sql; create table blah2 as select * from blah1(obs=10) ; quit; Is that what you're after? Chris Business Analyst, Code Monkey, Data Wrangler. SAS Guru. Upvote 0 Downvote
You can't really, not that I'm aware of. However, you can put an OBS= dataset option onto the input dataset... Code: proc sql; create table blah2 as select * from blah1(obs=10) ; quit; Is that what you're after? Chris Business Analyst, Code Monkey, Data Wrangler. SAS Guru.