or you can always go back to 'old school' SAS (before Proc SQL) just use _N_ to figure out which record you are on and output accordingly. (for those of you that do not know - _N_ is the observation variable that you do not see - unless looking for it)
so :
data one;
set ODBCDATABASE.TABLENAME;
If _N_ >= 5 & _N_ <= 105 Then Output;
(in one client job I have also been known to sort the data and then get just the even numbered records in a range for a sample)
I still say that Proc SQL was put there for SQL DBAs like me --- but you can do MANY things with SAS data steps that you can not easily in SQL.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.