|Date: ||Thu, 25 May 2006 22:16:34 -0700|
|Reply-To: ||David L Cassell <davidlcassell@MSN.COM>|
|Sender: ||"SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>|
|From: ||David L Cassell <davidlcassell@MSN.COM>|
|Subject: ||Re: get the subset|
|Content-Type: ||text/plain; format=flowed|
>How can I get the subset that inlcude every 41 records (from the No.1
>to No.41; No.42 to No.82 No. 83 to No.123) of a big sas set?Thank you!
Why would you want to do this, anyway? SAS works best when you
keep the large data sets intact.
Instead, mark the 41-record blocks with an identifier so each block
has a different value, and you can use by-processing. Or WHERE
clauses. Or whatever you need. Try this:
block = ceil(_n_/41);
David L. Cassell
3115 NW Norwood Pl.
Corvallis OR 97330
Express yourself instantly with MSN Messenger! Download today - it's FREE!