Date: Tue, 5 Jul 2005 17:26:22 -0400
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Nat Wooding <Nathaniel_Wooding@DOM.COM>
Subject: Re: how to choose all of the odd observations in a data set?
Content-Type: text/plain; charset="US-ASCII"
try the following example.
do id=1 to 100;
set raw (where=(mod(id,2)=1));* use zero for even numbered records.
You will need to have some sequential id
* variable in your original data set or
you will need to add one. you cannot
* use _n_;
<alberthz@STANFOR To: SAS-L@LISTSERV.UGA.EDU
Sent by: "SAS(r) Subject: how to choose all of the odd observations in a data set?
07/05/05 05:09 PM
Please respond to
how to choose all of the odd observations in a data set?
CONFIDENTIALITY NOTICE: This electronic message contains information
which may be legally confidential and/or privileged and does not in any
case represent a firm ENERGY COMMODITY bid or offer relating thereto
which binds the sender without an additional express written
confirmation to that effect. The information is intended solely for
the individual or entity named above and access by anyone else is
unauthorized. If you are not the intended recipient, any disclosure,
copying, distribution, or use of the contents of this information is
prohibited and may be unlawful. If you have received this electronic
transmission in error, please reply immediately to the sender that you
have received the message in error, and delete it. Thank you.